nvim: lua/lsp-utils: Disable proc macros for rust-analyzer

This commit is contained in:
Sanchayan Maity 2024-11-04 12:16:49 +05:30
parent 9075d7b321
commit cc05f03ddf
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -265,12 +265,19 @@ function M.ra_config()
root_dir = root_directory,
settings = {
["rust-analyzer"] = {
procMacro = {
enable = true
},
checkOnSave = {
command = "clippy"
},
diagnostics = {
-- https://rust-analyzer.github.io/manual.html#diagnostics
disabled = {
"macro-def-error",
"macro-error"
},
},
procMacro = {
enable = false
},
},
},
}