feat: hijack cursor (#428)

This commit is contained in:
Kiyan
2021-06-02 19:28:27 +02:00
committed by GitHub
parent 34a657fd5a
commit 6dca42d09d
4 changed files with 19 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ augroup NvimTree
au TabEnter * lua require'nvim-tree'.tab_change()
endif
au SessionLoadPost * lua require'nvim-tree.view'._wipe_rogue_buffer()
if get(g:, 'nvim_tree_hijack_cursor', 1) == 1
au CursorMoved NvimTree lua require'nvim-tree'.place_cursor_on_node()
endif
augroup end
command! NvimTreeOpen lua require'nvim-tree'.open()