Enable diagnostic real-time updates from rust LSP
This commit is contained in:
parent
1fdad0db6e
commit
d6c8018a2d
1 changed files with 16 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue