When re-opening the tree buffer, navigate to the target window's working dir
This commit is contained in:
@@ -306,6 +306,9 @@ function M.open()
|
||||
api.nvim_command('setlocal '..opt)
|
||||
end
|
||||
|
||||
if M.Tree.loaded then
|
||||
M.change_dir(vim.fn.getcwd())
|
||||
end
|
||||
renderer.draw(M.Tree, not M.Tree.loaded)
|
||||
M.Tree.loaded = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user