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:
parent
644e8af39f
commit
7ecfdda8ff
@ -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
|
||||
"}
|
||||
|
||||
@ -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
|
||||
]])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user