Supress error messages

add `silent!` in case of error message when nvim-lspconfig is not installed
pull/96/head
amalgame21 3 years ago committed by GitHub
parent c775437012
commit a093627fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,7 +87,7 @@ end
-- Automatically source and re-compile packer whenever you save this init.lua
local packer_group = vim.api.nvim_create_augroup('Packer', { clear = true })
vim.api.nvim_create_autocmd('BufWritePost', {
command = 'source <afile> | LspStop | LspStart | PackerCompile',
command = 'source <afile> | silent! LspStop | silent! LspStart | PackerCompile',
group = packer_group,
pattern = vim.fn.expand '$MYVIMRC',
})

Loading…
Cancel
Save