feat: add rustaceanvim lsp config
This commit is contained in:
parent
38be6324c2
commit
0882efd1a3
|
|
@ -251,6 +251,7 @@ return {
|
||||||
'golines',
|
'golines',
|
||||||
'goimports-reviser',
|
'goimports-reviser',
|
||||||
'cspell',
|
'cspell',
|
||||||
|
'rust-analyzer',
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
|
|
@ -260,6 +261,10 @@ return {
|
||||||
handlers = {
|
handlers = {
|
||||||
function(server_name)
|
function(server_name)
|
||||||
local server = servers[server_name] or {}
|
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
|
-- This handles overriding only values explicitly passed
|
||||||
-- by the server configuration above. Useful when disabling
|
-- by the server configuration above. Useful when disabling
|
||||||
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue