-
Hi, require("neo-tree").setup({
window = {
mappings = {
["p"] = "<up>",
["i"] = "<down>",
...
},
},
}) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The right hand side should point to a name of one of the functions listed here: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/main/lua/neo-tree/sources/common/commands.lua, such as "toggle_node". That config option does not handle vim's Instead, I believe that you have that keybind set globally (due to a different keyboard layout?). If that's the case, you can disable default keybinds with
to not assign any specific keybind in the neo-tree window. Does this achieve what you want? |
Beta Was this translation helpful? Give feedback.
-
This is not working for me. I am using lazyvim. I remapped "p" like this:
and it the neo-tree config I have remapped p like this
I tried noremap = true and also set "p" to "k" with the same result: type |
Beta Was this translation helpful? Give feedback.
The right hand side should point to a name of one of the functions listed here: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/main/lua/neo-tree/sources/common/commands.lua, such as "toggle_node".
That config option does not handle vim's
:nmap
functionality.Instead, I believe that you have that keybind set globally (due to a different keyboard layout?).
If that's the case, you can disable default keybinds with
["p"] = "noop"
to not assign any specific keybind in the neo-tree window.
Does this achieve what you want?