From: Samir Benmendil Date: Mon, 10 Apr 2023 22:43:39 +0000 (+0100) Subject: nvim: disable LazyVim autocmds, match vimrc augroups to LazyVim X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b317ae26bf3be8703ace4e634f7c451690e2b687?ds=sidebyside nvim: disable LazyVim autocmds, match vimrc augroups to LazyVim Most of them were already in vimrc. Matching augroup names from LazyVim is done to somewhat future proof the autocommands. --- diff --git a/nvim/lua/plugins/core.lua b/nvim/lua/plugins/core.lua new file mode 100644 index 0000000..32a62dc --- /dev/null +++ b/nvim/lua/plugins/core.lua @@ -0,0 +1,10 @@ +return { + { + "LazyVim/LazyVim", + opts = { + defaults = { + autocmds = false, + }, + }, + }, +} diff --git a/vim/vimrc b/vim/vimrc index 5f0dea3..c5fca77 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -376,7 +376,7 @@ set sessionoptions+=unix,slash " damn windows and it's silly ways " autocmds {{{1 " Resize splits when the window is resized {{{2 -augroup resize +augroup resize_splits au! autocmd VimResized * :wincmd = augroup END @@ -395,7 +395,7 @@ augroup ft_stdin augroup END " Jump to last known cursor position {{{2 -augroup cursor_pos +augroup last_loc au! " blacklist certain filetype let blacklist = ['gitcommit']