neovim: Use rust-analyzer configuration from docs

This commit is contained in:
Simon Bruder 2023-12-21 14:45:45 +01:00
parent 1255e53e92
commit b645bfbddc
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

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