Stop NVimTree from overriding custom hotkeys #3116
-
I would like to prevent NVimTree from taking over For example, I normally have function NormalTab()
if winnr('$') > 1
execute "normal \<C-w>w"
elseif len(getbufinfo({'buflisted': 1})) > 1
:bnext
endif
endfunction I would like this behaviour to continue working in all windows, including the I have checked the Any clues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
How are you deleting the keymap? Are you specifying the buffer? From my config: vim.keymap.del("n", "<BS>", { buffer = bufnr }) -- api.node.navigate.parent_close, |
Beta Was this translation helpful? Give feedback.
I think that's going to set
on_attach
to nil - the result of the function.Try setting to the function itself, so that it may be called when creating the tree, see :help nvim-tree-mappings