summary refs log tree commit diff
path: root/.vim/lua/plugins.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-08-17 15:25:57 +0200
committerRobert Günzler <r@gnzler.io>2022-08-17 15:25:57 +0200
commit09c5d3a1e9e27e307524457b008a7ec6976e39fc (patch)
tree1f01ed7ab666a2b91fa8628e02ecf756d47084aa /.vim/lua/plugins.lua
parentc065216cab123898d46a4dae2ddeac6ca9abc5c0 (diff)
vim: simplify autocmds
Diffstat (limited to '.vim/lua/plugins.lua')
-rw-r--r--.vim/lua/plugins.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua
index da4a9f1..aa914d1 100644
--- a/.vim/lua/plugins.lua
+++ b/.vim/lua/plugins.lua
@@ -59,12 +59,11 @@ do
       vim.cmd [[PackerCompile]]
       vim.notify('packer: lazy-loading refreshed')
     end,
-    {})
-  local group = vim.api.nvim_create_augroup('PackerAutoCompile', { clear = true })
+    { desc = 'recompile packer lazy-loading files' })
   vim.api.nvim_create_autocmd('BufWritePost', {
     pattern = 'plugins.lua',
     command = [[PackerRecompile]],
-    group = group
+    group = vim.api.nvim_create_augroup('PackerAutoCompile', {}),
   })
 end -- }}}