Is there a way to open (or toggle) the tree without moving the cursor to the tree window? It would be nice if there was an option. Thanks!
@litearc You can implement that yourself with something like this:
function! NvimTreeToggleNoFocus()
lua << EOF
local lib = require'nvim-tree.lib'
local view = require'nvim-tree.view'
if view.win_open() then
view.close()
else
lib.open()
vim.cmd("wincmd p")
end
EOF
endfunction
i should start dropping default commands in favor of a better documentation :D I consider this as closed if you don't mind :)
Most helpful comment
@litearc You can implement that yourself with something like this: