Supress error messages
add `silent!` in case of error message when nvim-lspconfig is not installed
This commit is contained in:
parent
c775437012
commit
a093627fc0
2
init.lua
2
init.lua
|
@ -87,7 +87,7 @@ end
|
||||||
-- Automatically source and re-compile packer whenever you save this init.lua
|
-- Automatically source and re-compile packer whenever you save this init.lua
|
||||||
local packer_group = vim.api.nvim_create_augroup('Packer', { clear = true })
|
local packer_group = vim.api.nvim_create_augroup('Packer', { clear = true })
|
||||||
vim.api.nvim_create_autocmd('BufWritePost', {
|
vim.api.nvim_create_autocmd('BufWritePost', {
|
||||||
command = 'source <afile> | LspStop | LspStart | PackerCompile',
|
command = 'source <afile> | silent! LspStop | silent! LspStart | PackerCompile',
|
||||||
group = packer_group,
|
group = packer_group,
|
||||||
pattern = vim.fn.expand '$MYVIMRC',
|
pattern = vim.fn.expand '$MYVIMRC',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue