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
parent 0aaac9f627
commit 04234e57b1

View File

@ -198,6 +198,11 @@ for _, lsp in pairs(servers) do
} }
end 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{ require'lspconfig'.yamlls.setup{
settings = { settings = {
json = { json = {