When you are in the insert mode you see the errors nvim
This commit is contained in:
parent
0aaac9f627
commit
04234e57b1
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user