nvim: lua/lsp-utils: Disable proc macros for rust-analyzer
This commit is contained in:
parent
9075d7b321
commit
cc05f03ddf
1 changed files with 10 additions and 3 deletions
|
@ -265,12 +265,19 @@ function M.ra_config()
|
||||||
root_dir = root_directory,
|
root_dir = root_directory,
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
procMacro = {
|
|
||||||
enable = true
|
|
||||||
},
|
|
||||||
checkOnSave = {
|
checkOnSave = {
|
||||||
command = "clippy"
|
command = "clippy"
|
||||||
},
|
},
|
||||||
|
diagnostics = {
|
||||||
|
-- https://rust-analyzer.github.io/manual.html#diagnostics
|
||||||
|
disabled = {
|
||||||
|
"macro-def-error",
|
||||||
|
"macro-error"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
procMacro = {
|
||||||
|
enable = false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue