neovim: Use rust-analyzer configuration from docs

renge2
Simon Bruder 2023-12-21 14:45:45 +01:00
parent 1255e53e92
commit b645bfbddc
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 14 additions and 0 deletions

View File

@ -351,9 +351,23 @@ lsp.rust_analyzer.setup {
on_attach = on_attach,
settings = {
['rust-analyzer'] = {
cargo = {
buildScripts = {
enable = true,
},
},
checkOnSave = {
command = 'clippy',
},
imports = {
granularity = {
group = "module",
},
prefix = "self",
},
procMacro = {
enable = true
},
},
},
}