nvim: install new plugins if they appear in nvim's lua directory
This commit is contained in:
parent
6c938e3d17
commit
95b5fe29a4
|
@ -20,12 +20,12 @@ use {
|
||||||
}
|
}
|
||||||
use 'https://github.com/L3MON4D3/LuaSnip'
|
use 'https://github.com/L3MON4D3/LuaSnip'
|
||||||
|
|
||||||
-- compile and install new plugins when this file is saved
|
-- compile and install new plugins when this is save in this dir are written
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
augroup packer_user_config
|
augroup packer_user_config
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd User PackerComplete PackerCompile
|
autocmd User PackerComplete PackerCompile
|
||||||
autocmd BufWritePost plugins.lua source <afile> | PackerInstall
|
autocmd BufWritePost nvim/lua/*.lua source <afile> | PackerInstall
|
||||||
augroup end
|
augroup end
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user