diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-10-07 15:17:29 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-10-07 15:17:32 +0200 |
commit | 906f84bd7449b6f93169b9038873ed72ddc73b72 (patch) | |
tree | ab3fe308316accaaac917d5ec70ec4b14744b821 /nvim | |
parent | f89306dc0ed05fc56de2cfcaecab4558c82ff122 (diff) |
Enable rust_analyzer LSP
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/init.lua | 13 |
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") |