update: nvim: use clippy for check in rust-analyzer
This commit is contained in:
parent
9fe0875062
commit
e86b6655d8
1 changed files with 13 additions and 1 deletions
|
@ -632,7 +632,19 @@ lspconfig.typst_lsp.setup {
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
local lss = { "pyright", "rust_analyzer", "texlab", "ccls", "clangd", "tsserver", --[["tailwindcss"]] "hls", "cmake",
|
lspconfig.rust_analyzer.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
['rust-analyzer'] = {
|
||||||
|
check = {
|
||||||
|
command = "clippy",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local lss = { "pyright", "texlab", "ccls", "clangd", "tsserver", --[["tailwindcss"]] "hls", "cmake",
|
||||||
"csharp_ls", "html", "r_language_server", "ruff_lsp", "cssls" }
|
"csharp_ls", "html", "r_language_server", "ruff_lsp", "cssls" }
|
||||||
for _, ls in pairs(lss) do
|
for _, ls in pairs(lss) do
|
||||||
lspconfig[ls].setup {
|
lspconfig[ls].setup {
|
||||||
|
|
Loading…
Reference in a new issue