1
0
Fork 0

nvim: plugins: clean up

This commit is contained in:
tastytea 2022-08-11 03:43:01 +02:00
parent 75ca9848dd
commit c51f8cd8b0
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 10 deletions

View File

@ -10,16 +10,8 @@ packer.init()
packer.use 'https://github.com/wbthomason/packer.nvim'
-- source file, install new plugins and compile when config file is written
-- source file and compile plugins when config file is written
vim.api.nvim_create_augroup('packer_user_config', { clear = true })
-- vim.api.nvim_create_autocmd(
-- { 'User' },
-- {
-- group = 'packer_user_config',
-- pattern = 'PackerComplete',
-- command = [[PackerCompile']]
-- }
-- )
vim.api.nvim_create_autocmd(
{ 'BufWritePost' },
{
@ -29,7 +21,7 @@ vim.api.nvim_create_autocmd(
-- exclude plugins.lua, because that would re-init packer
if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then
vim.cmd([[
echo 'reloading config file…'
echom 'reloading config file…'
source <afile>
PackerCompile
redraw