diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-07 21:47:37 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-07 21:47:37 +0800 |
| commit | 7ecfdda8ff29d6e896b9a0c20cbfd89a6f31d1ab (patch) | |
| tree | d504976ef0c7831269cc6e03962fd9b65c44f2a2 | |
| parent | 644e8af39f27aaf00910094a9ed07c628ff8986b (diff) | |
Move packer compile autocmd to new place
| -rw-r--r-- | core/autocommands.vim | 6 | ||||
| -rw-r--r-- | lua/plugins.lua | 7 |
2 files changed, 6 insertions, 7 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 "} diff --git a/lua/plugins.lua b/lua/plugins.lua index 437754e..f602883 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -288,10 +288,3 @@ require('packer').startup( } } }) - -vim.cmd([[ - augroup packer_auto_compile - autocmd! - autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile - augroup END -]]) |
