Changed emmet lsp, silenced repeated key warning from which-key, fixed annoying rust-analyzer error

This commit is contained in:
2024-12-05 07:53:24 +01:00
parent 4c81d0b05b
commit 670ecf53dd
4 changed files with 58 additions and 31 deletions

9
after/ftplugin/rust.lua Normal file
View File

@@ -0,0 +1,9 @@
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