1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Move packer compile autocmd to new place

This commit is contained in:
jdhao 2021-08-07 21:47:37 +08:00
parent 644e8af39f
commit 7ecfdda8ff
2 changed files with 6 additions and 7 deletions

View File

@ -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
"}

View File

@ -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
]])