nvim: install new plugins if they appear in nvim's lua directory

This commit is contained in:
tastytea 2022-08-08 20:00:17 +02:00
parent 6c938e3d17
commit 95b5fe29a4
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

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