summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Picciano <me@mediocregopher.com>2024-10-07 15:17:29 +0200
committerBrian Picciano <me@mediocregopher.com>2024-10-07 15:17:32 +0200
commit906f84bd7449b6f93169b9038873ed72ddc73b72 (patch)
treeab3fe308316accaaac917d5ec70ec4b14744b821
parentf89306dc0ed05fc56de2cfcaecab4558c82ff122 (diff)
Enable rust_analyzer LSP
-rw-r--r--nvim/init.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 9f4e393..869b45b 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -11,7 +11,18 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = false
lspconfig.gopls.setup {
- capabilities = capabilities,
+ capabilities = capabilities,
+}
+
+lspconfig.rust_analyzer.setup {
+ capabilities = capabilities,
+ settings = {
+ ['rust-analyzer'] = {
+ diagnostics = {
+ disabled = { "unlinked-file" },
+ },
+ },
+ },
}
local cmp = require("cmp")