mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-06-07 00:48:24 +02:00
added clippy for rust file linting
This commit is contained in:
@@ -17,7 +17,6 @@ local servers = {
|
||||
"nginx_language_server",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"rust_analyzer",
|
||||
"html",
|
||||
"cssls",
|
||||
"tailwindcss",
|
||||
@@ -32,3 +31,15 @@ for _, server in ipairs(servers) do
|
||||
})
|
||||
vim.lsp.enable(server)
|
||||
end
|
||||
|
||||
vim.lsp.config("rust_analyzer", {
|
||||
capabilities = cmp_cap,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
check = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
|
||||
Reference in New Issue
Block a user