Skip to content

Commit d8bf1ad

Browse files
committed
fix: update neovim path when nvim is opened with nvim dir
fixes #945
1 parent f183c7f commit d8bf1ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/nvim-tree.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ function M.on_enter(netrw_disabled)
111111
M.hijack_current_window()
112112
end
113113

114+
-- INFO: could potentially conflict with rooter plugins
115+
if cwd and should_open then
116+
vim.cmd("noautocmd cd "..cwd)
117+
end
118+
114119
lib.init(should_open, cwd)
115120
end
116121

0 commit comments

Comments
 (0)