From f65eb9af3320aa3822c1a14b2855c58404d17dc3 Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 16 Nov 2022 11:54:03 +0100 Subject: [PATCH] rust lsp config --- after/plugin/lsp.lua | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index fb07c2b..e2832ea 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -117,15 +117,23 @@ require("lspconfig").gopls.setup(config({ -- who even uses this? require("lspconfig").rust_analyzer.setup(config({ -- cmd = { "rustup", "run", "rust-analyzer" }, - --[[ - settings = { - rust = { - unstable_features = true, - build_on_save = false, - all_features = true, - }, - } - --]] + cmd = { "rust-analyzer" }, + [[ + settings = { + rust = { + unstable_features = true, + build_on_save = false, + all_features = true, + }, + ["rust-analyzer"] = { + diagnostics = { + enable = true, + disabled = {"unresolved-proc-macro"}, + enableExperimental = true, + }, + }, + } + ]] })) --require("lspconfig").sumneko_lua.setup(config({