Skip to content

Stop NVimTree from overriding custom hotkeys #3116

Answered by alex-courtis
savchenko asked this question in Q&A
Discussion options

You must be logged in to vote
require("nvim-tree").setup({
    on_attach = my_on_attach()
})

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

  require("nvim-tree").setup({
    ---
    on_attach = my_on_attach,
    ---

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@savchenko
Comment options

@alex-courtis
Comment options

Answer selected by savchenko
@savchenko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants