In neovim, I have my leader mapped to
I also use nvim-tree.
What I want: when nvim-tree is open and that is the active buffer (cursor is there), map leader to something else so I can use
space to expand folders in the tree. This feels most natural to me.
Is there a way to do this? Seems like it'd be useful broadly to have environment dependent keymaps