From 7a06fbb0be41f0e4982474a17ce41bd81f2ae4c1 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 21 Aug 2021 17:19:11 +0530 Subject: [PATCH] disable autocwd by default --- lua/options.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/options.lua b/lua/options.lua index 84e1a72..2e603c4 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -71,7 +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 ]] +-- uncomment this if you want to open nvim with a dir +-- 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 ]]