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.
This commit is contained in:
siduck76 2021-08-21 13:57:15 +05:30 committed by GitHub
parent 83992378a4
commit c60df482e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ]]