From c12b43a79593eb0caa78c2b9267bbe2801e8aeaf Mon Sep 17 00:00:00 2001 From: Gerrit Pannek Date: Wed, 15 Mar 2023 13:16:16 +0100 Subject: [PATCH] fix(nvim): init lua autocmd --- configfile/nvim/lua/custom/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configfile/nvim/lua/custom/init.lua b/configfile/nvim/lua/custom/init.lua index a871720..c6b4850 100644 --- a/configfile/nvim/lua/custom/init.lua +++ b/configfile/nvim/lua/custom/init.lua @@ -5,10 +5,10 @@ -- ]]) -- Open a file from its last left off position --- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] +vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] -- uncomment this if you want to open nvim with a dir --- vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]] +vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]] -- File extension specific tabbing --- vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]] +vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]