Skip to content

Bug: custom keymaps do not always override the defaults #2145

Closed
@aidancz

Description

@aidancz

RTFM Checklist

  • I have searched exisiting issues / discussions
  • I have read the Wiki including the Advanced section
  • I have read man fzf / I am well versed in shell fzf

Operating system

linux

Shell

zsh

Neovim version (nvim --version)

NVIM v0.12.0-dev-690+gc752016976

Fzf version (fzf --version)

0.62.0 (d226d841)

Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))

--color=16 --color=fg:-1 --color=fg+:-1:reverse --color=bg:-1 --color=bg+:-1:reverse --color=gutter:-1 --color=hl:4 --color=hl+:4:reverse --color=query:-1 --color=info:-1 --color=border:-1 --color=label:-1 --color=prompt:-1 --color=pointer:-1 --color=marker:-1 --color=spinner:-1 --color=header:-1 --bind=change:first --bind=ctrl-s:first --bind=ctrl-e:last --layout=reverse --no-unicode --pointer= --scrollbar= --highlight-line --scroll-off=0 --walker=file,dir,follow,hidden

Is the problem reproducible with mini.sh?

  • My issue is reproducible with mini.sh
  • My issue IS NOT reproducible with mini.sh
  • I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration

require('fzf-lua').setup({
	keymap = {
		builtin = {
			true,
			["<f1>"]         = "hide",
		},
	},
})

Describe the bug / steps to reproduce

The <f1> keymap doesn't always behave consistently — sometimes it triggers hide, while other times it runs toggle-help

  1. :FzfLua helptags
  2. press <f1>
  3. run :restart to restart neovim
  4. goto 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions