|
|
|
@ -83,6 +83,10 @@ return {
|
|
|
|
|
lsp.rust_analyzer.setup({
|
|
|
|
|
settings = {
|
|
|
|
|
["rust-analyzer"] = {
|
|
|
|
|
checkOnSave = {
|
|
|
|
|
allFeatures = true,
|
|
|
|
|
command = { "clippy" },
|
|
|
|
|
},
|
|
|
|
|
procMacro = {
|
|
|
|
|
enable = true,
|
|
|
|
|
ignored = {
|
|
|
|
@ -91,7 +95,25 @@ return {
|
|
|
|
|
},
|
|
|
|
|
cargo = {
|
|
|
|
|
allFeatures = true,
|
|
|
|
|
autoreload = true,
|
|
|
|
|
},
|
|
|
|
|
rustfmt = {
|
|
|
|
|
overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
|
|
|
|
|
},
|
|
|
|
|
callInfo = { full = true },
|
|
|
|
|
lens = {
|
|
|
|
|
enable = true,
|
|
|
|
|
references = true,
|
|
|
|
|
implementations = true,
|
|
|
|
|
enumVariantReferences = true,
|
|
|
|
|
methodReferences = true,
|
|
|
|
|
},
|
|
|
|
|
inlayHints = {
|
|
|
|
|
enable = true,
|
|
|
|
|
typeHints = true,
|
|
|
|
|
parameterHints = true,
|
|
|
|
|
},
|
|
|
|
|
hoverActions = { enable = true, },
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|