aboutsummaryrefslogtreecommitdiff
path: root/core/autocommands.vim
diff options
context:
space:
mode:
Diffstat (limited to 'core/autocommands.vim')
-rw-r--r--core/autocommands.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim
index 6f25e79..396e7b0 100644
--- a/core/autocommands.vim
+++ b/core/autocommands.vim
@@ -97,4 +97,10 @@ augroup git_repo_check
autocmd!
autocmd VimEnter,DirChanged * call utils#Inside_git_repo()
augroup END
+
+" Auto-generate packer_compiled.lua file
+augroup packer_auto_compile
+ autocmd!
+ autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
+augroup END
"}