mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
19 lines
485 B
Lua
19 lines
485 B
Lua
return {
|
|
setup = {
|
|
handlers = {
|
|
["textDocument/publishDiagnostics"] = function(_, _, p, id, _, cfg)
|
|
if p.diagnostics ~= nil then
|
|
local i = 1
|
|
while i <= #p.diagnostics do
|
|
if p.diagnostics[i].code == 80001 then
|
|
table.remove(p.diagnostics, i)
|
|
else
|
|
i = i + 1
|
|
end
|
|
end
|
|
end
|
|
vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, id, _, cfg)
|
|
end,
|
|
},
|
|
},
|
|
}
|