mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
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:
parent
83992378a4
commit
c60df482e9
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue