Files
nvim/after/lsp/rust_analyzer.lua

38 lines
901 B
Lua

---@type vim.lsp.Config
return {
settings = {
["rust-analyzer"] = {
check = {
command = "clippy",
},
completion = {
fullFunctionSignatures = {
enable = true,
},
},
diagnostics = {
styleLints = {
enable = true,
},
},
imports = {
prefix = "self",
},
inlayHints = {
chainingHints = {
enable = false,
},
parameterHints = {
enable = false,
},
typeHints = {
enable = false,
},
},
rustfmt = {
extraArgs = { "+nightly" },
},
},
},
}