]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: disable LazyVim autocmds, match vimrc augroups to LazyVim
authorSamir Benmendil <me@rmz.io>
Mon, 10 Apr 2023 22:43:39 +0000 (23:43 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 23:08:51 +0000 (23:08 +0000)
Most of them were already in vimrc. Matching augroup names from LazyVim
is done to somewhat future proof the autocommands.

nvim/lua/plugins/core.lua [new file with mode: 0644]
vim/vimrc

diff --git a/nvim/lua/plugins/core.lua b/nvim/lua/plugins/core.lua
new file mode 100644 (file)
index 0000000..32a62dc
--- /dev/null
@@ -0,0 +1,10 @@
+return {
+  {
+    "LazyVim/LazyVim",
+    opts = {
+      defaults = {
+        autocmds = false,
+      },
+    },
+  },
+}
index 5f0dea313f1de9c5b23c7a44790b004185c5690c..c5fca7744f8383a6594de26362d35544c207ab50 100644 (file)
--- 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']