-
Simply adding a key bind and nothing happens when I press F2 local function my_on_attach(bufnr) local function opts(desc) -- default mappings vim.keymap.set('n', 'O', '', { buffer = bufnr }) vim.keymap.set('n', 'A', api.tree.expand_all, opts('Expand All')) vim.keymap.set('n', '', api.tree.toggle, opts('Toggle Tree')) -- pass to setup along with your other options
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You didn't show mapping for F2, so not sure what it is suppose to do, but you will need to set it up outside of mvim-tree's configuration. Keymaps that you are setting above are only to be active within nvim-tree buffer. |
Beta Was this translation helpful? Give feedback.
You didn't show mapping for F2, so not sure what it is suppose to do, but you will need to set it up outside of mvim-tree's configuration. Keymaps that you are setting above are only to be active within nvim-tree buffer.