open dir with nvim (#316)

opening dir with nvim will work by default but since we have lazy loaded nvimtree , it doesnt update the cwd in nvimtree. This will fix that.
navigator
siduck76 3 years ago committed by GitHub
parent 83992378a4
commit c60df482e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,6 +71,8 @@ for _, plugin in pairs(disabled_built_ins) do
g["loaded_" .. plugin] = 1
end
vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
-- Use relative & absolute line numbers in 'n' & 'i' modes respectively
-- vim.cmd[[ au InsertEnter * set norelativenumber ]]
-- vim.cmd[[ au InsertLeave * set relativenumber ]]

Loading…
Cancel
Save