aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-07 21:47:37 +0800
committerjdhao <jdhao@hotmail.com>2021-08-07 21:47:37 +0800
commit7ecfdda8ff29d6e896b9a0c20cbfd89a6f31d1ab (patch)
treed504976ef0c7831269cc6e03962fd9b65c44f2a2 /core
parent644e8af39f27aaf00910094a9ed07c628ff8986b (diff)
Move packer compile autocmd to new place
Diffstat (limited to 'core')
-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
"}