feat: add rustaceanvim lsp config

This commit is contained in:
ralvescosta 2025-03-17 08:01:56 -03:00
parent 38be6324c2
commit 0882efd1a3
1 changed files with 5 additions and 0 deletions

View File

@ -251,6 +251,7 @@ return {
'golines',
'goimports-reviser',
'cspell',
'rust-analyzer',
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -260,6 +261,10 @@ return {
handlers = {
function(server_name)
local server = servers[server_name] or {}
-- This configuration is required since the rustaceanvim not work properly with lsp
if server_name == 'rust_analyzer' then
return
end
-- This handles overriding only values explicitly passed
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for ts_ls)