diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 437f9d7..c1cfe44 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -3,15 +3,10 @@ return { "neovim/nvim-lspconfig", opts = { inlay_hints = { enabled = true }, - -- capabilities = { - -- workspace = { - -- didChangeWatchedFiles = { - -- dynamicRegistration = false, - -- }, - -- }, - -- }, servers = { rust_analyzer = { + mason = false, + targetDir = true, keys = { { "K", "RustHoverActions", desc = "Hover Actions (Rust)" }, { "cR", "RustCodeAction", desc = "Code Action (Rust)" }, @@ -23,12 +18,7 @@ return { allFeatures = true, loadOutDirsFromCheck = true, runBuildScripts = true, - }, - -- Add clippy lints for Rust. - checkOnSave = { - allFeatures = true, - command = "clippy", - extraArgs = { "--no-deps" }, + targetDir = true, }, procMacro = { enable = true,