bro no way this is the issue

This commit is contained in:
h
2024-12-26 16:17:26 -05:00
parent 7fe2f7b438
commit 80fbd2f133
4 changed files with 105 additions and 83 deletions
+11
View File
@@ -254,6 +254,17 @@ vim.api.nvim_create_autocmd(
end
})
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
-- vim.api.nvim_create_autocmd({ 'FileType', 'BufRead', 'BufReadPre', 'BufReadPost', 'BufWrite', 'BufWritePre',
-- 'BufWritePost' }, {
-- pattern = "*",