godot and telescope ripgrep

This commit is contained in:
Christian Nieves
2025-03-16 16:38:34 -05:00
parent f595b1fcfa
commit 76686a0e87
9 changed files with 240 additions and 217 deletions

View File

@ -6,6 +6,16 @@ return {
ft = { "rust" },
config = function(_, opts)
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
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
end,
opts = {
server = {