Enable diagnostic real-time updates from rust LSP

This commit is contained in:
Martin Larsson 2025-05-30 15:29:29 +02:00
parent 1fdad0db6e
commit d6c8018a2d

View file

@ -10,10 +10,26 @@ return {
tools = { tools = {
hover_actions = { hover_actions = {
auto_focus = true, auto_focus = true,
replace_builtin_hover = true,
}, },
}, },
server = { server = {
on_attach = require("lsplib").configure_generic_client, on_attach = require("lsplib").configure_generic_client,
default_settings = {
["rust-analyzer"] = {
inlayHints = {
chainingHints = true,
parameterHints = true,
typeHints = true,
},
diagnostics = {
enable = true,
experimental = {
enable = true,
},
},
},
},
} }
} }
end, end,