blob: 390e02f93fe3b0e0bfe7a594fe234fdd35cbdbb7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
-- Fix: https://github.com/neovim/neovim/issues/30985
for _, method in ipairs({ 'textDocument/diagnostic', 'workspace/diagnostic' }) do
local default_diagnostic_handler = vim.lsp.handlers[method]
vim.lsp.handlers[method] = function(err, result, context, config)
if err ~= nil and err.code == -32802 then
return
end
return default_diagnostic_handler(err, result, context, config)
end
end
|