When you are in the insert mode you see the errors nvim

This commit is contained in:
Marcin Woźniak 2022-04-29 13:17:29 +02:00 committed by Marcin Woźniak
parent 54ee5a8b7a
commit baba0677c6

View File

@ -198,6 +198,11 @@ for _, lsp in pairs(servers) do
}
end
-- Handlers when you are in the insert mode you see the errors
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics,
{update_in_insert = true})
require'lspconfig'.yamlls.setup{
settings = {
json = {