diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 1193970..23c589d 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -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 PackerCompile redraw