chore: switch cd to lcd and update root on dirchanged

This commit is contained in:
kiyan
2021-06-07 20:09:48 +02:00
parent f1f14885f7
commit 3196205131
5 changed files with 12 additions and 2 deletions

View File

@@ -29,6 +29,9 @@ augroup NvimTree
if get(g:, 'nvim_tree_hijack_cursor', 1) == 1
au CursorMoved NvimTree lua require'nvim-tree'.place_cursor_on_node()
endif
if get(g:, 'nvim_tree_update_cwd', 1) == 1
au DirChanged * lua require'nvim-tree.lib'.change_dir(vim.loop.cwd())
endif
augroup end
command! NvimTreeOpen lua require'nvim-tree'.open()