diff --git a/lua/config/lspconfig.lua b/lua/config/lspconfig.lua index 165bdb4..54500ec 100644 --- a/lua/config/lspconfig.lua +++ b/lua/config/lspconfig.lua @@ -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")