feat(nvim): run clippy using rust-analyzer

This commit is contained in:
Moritz Böhme 2023-07-29 17:06:58 +02:00
parent 916674d5b2
commit 4cd51917fc
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -122,7 +122,6 @@ local servers = {
"nil_ls",
"pylsp",
"ruff_lsp",
"rust_analyzer",
"typst_lsp",
"gopls",
}
@ -130,6 +129,16 @@ for _, lsp in ipairs(servers) do
lspconfig_setup(lsp, {})
end
lspconfig_setup("rust_analyzer", {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
},
},
},
})
lspconfig_setup("lua_ls", {
settings = {
Lua = {