fix: update neovim path when nvim is opened with nvim dir

fixes #945
This commit is contained in:
kiyan 2022-02-08 21:02:22 +01:00
parent f183c7f311
commit d8bf1adcdc

View File

@ -111,6 +111,11 @@ function M.on_enter(netrw_disabled)
M.hijack_current_window()
end
-- INFO: could potentially conflict with rooter plugins
if cwd and should_open then
vim.cmd("noautocmd cd "..cwd)
end
lib.init(should_open, cwd)
end