diff options
-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") |