From 813da276251bddd629bb53520734649e0c713628 Mon Sep 17 00:00:00 2001 From: u2515h Date: Thu, 25 Jan 2024 20:58:31 +0100 Subject: [PATCH] fix(nvim/rust-analyzer): fix completion --- rust.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rust.lua b/rust.lua index 4eb6deb..b2fa401 100644 --- a/rust.lua +++ b/rust.lua @@ -115,7 +115,6 @@ vim.g.rustaceanvim = { -- setting it to false may improve startup time standalone = true, cmd = {(deps["rust_analyzer_path"] .. "/bin/rust-analyzer")}, - capabilities = require("cmp_nvim_lsp").default_capabilities(c), on_attach = function(client, bufnr) require("lsp-inlayhints").on_attach(client, bufnr) require('crates').setup() @@ -152,7 +151,9 @@ vim.g.rustaceanvim = { -- Goto previous/next diagnostic warning/error vim.keymap.set("n", "g[", vim.diagnostic.goto_prev, keymap_opts) vim.keymap.set("n", "g]", vim.diagnostic.goto_next, keymap_opts) - end + end, + settings = { + }, }, -- rust-analyzer options -- debugging stuff