From 3fdacaf932c649670fe2ab051976e91f1fda7ae4 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 7 Dec 2021 13:21:03 -0800 Subject: [PATCH] Use rls instead of rust_analyzer --- neovim/lua/plugins/lsp.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index d91a8e5..ccba2fe 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -74,7 +74,8 @@ local function config_lsp() "gopls", -- "pylsp", "pyright", - "rust_analyzer", + -- "rust_analyzer", + "rls", } local lsp_config = require("lspconfig") @@ -94,6 +95,11 @@ local function config_lsp() configurationSources = {"black"}, formatCommand = {"black"}, }, + rust={ + build_on_save = false, + all_features = true, + unstable_features = true, + }, }, } end