nvim: reduce logging when re-compiling on save

seems to work alright now.
This commit is contained in:
tastytea 2022-08-12 05:09:26 +02:00
parent d02c9953e9
commit 540a03eef6
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -21,7 +21,6 @@ vim.api.nvim_create_autocmd(
-- exclude plugins.lua, because that would re-init packer -- exclude plugins.lua, because that would re-init packer
if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then
vim.cmd([[ vim.cmd([[
echom 'reloading config file and installing new plugins…'
source <afile> source <afile>
PackerInstall PackerInstall
]]) ]])
@ -34,7 +33,7 @@ vim.api.nvim_create_autocmd(
{ {
group = 'packer_user_config', group = 'packer_user_config',
pattern = 'PackerComplete', pattern = 'PackerComplete',
command = [[echom 'compiling plugins…' | PackerCompile]] command = [[PackerCompile]]
} }
) )
vim.api.nvim_create_autocmd( vim.api.nvim_create_autocmd(
@ -42,6 +41,6 @@ vim.api.nvim_create_autocmd(
{ {
group = 'packer_user_config', group = 'packer_user_config',
pattern = 'PackerCompileDone', pattern = 'PackerCompileDone',
command = [[echom 'plugins compiled.']] command = [[echo 'plugins compiled']]
} }
) )