builtin
keymap or fzf
keymap? when will builtin
keymap being used?
#1612
-
Hi all, I noticed that to define keymap, we have two sets, However I noted that in almost all the case I need to configure the keymap for Then in what sceneario will |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick response! I think I understand what builtin mean now, it means Could I ask for another question: builtin = {
false, -- do not inherit from defaults This If you pass your personal keymap config to either |
Beta Was this translation helpful? Give feedback.
One day I will merge both these keymap tables and sort out this confusion, I'll try to make sense below.
As you probably understand fzf-lua is running fzf the binary in a neovim terminal.
keymap.fzf
are the binds sent to fzf's--bind=
flag (part of the fzf cli), these are usually navigation, line editing, etc.keymap.builtin
on the other hand are neovim binds attached to the main fzf window (the one running terminal fzf inside), for example when you pressF1
and fzf-lua will display the help window, in this workflow neovim interprests the keybind and triggers fzf-lua's help window (not interacting with the terminal at all).Here's when it becomes more confusing, fzf-lua supports all types…