From 0caa2fe698d8742335ba8c322ecbc4b78022eb5a Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 2 Jan 2021 19:49:45 -0800 Subject: rust-analyzer: remove workaround for ignored capabilities --- lua/lspconfig/rust_analyzer.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lua/lspconfig/rust_analyzer.lua') diff --git a/lua/lspconfig/rust_analyzer.lua b/lua/lspconfig/rust_analyzer.lua index 12bcfbae..4ea77cac 100644 --- a/lua/lspconfig/rust_analyzer.lua +++ b/lua/lspconfig/rust_analyzer.lua @@ -1,17 +1,6 @@ local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' --- neovim doesn't support the full 3.16 spec, but latest rust-analyzer requires the following capabilities. --- Remove once implemented. -local default_capabilities = vim.lsp.protocol.make_client_capabilities() -default_capabilities.workspace.workspaceEdit = { - normalizesLineEndings = true; - changeAnnotationSupport = { - groupsOnLabel = true; - }; -}; -default_capabilities.textDocument.rename.prepareSupportDefaultBehavior = 1; - configs.rust_analyzer = { default_config = { cmd = {"rust-analyzer"}; @@ -20,7 +9,6 @@ configs.rust_analyzer = { settings = { ["rust-analyzer"] = {} }; - capabilities = default_capabilities; }; docs = { package_json = "https://raw.githubusercontent.com/rust-analyzer/rust-analyzer/master/editors/code/package.json"; -- cgit v1.2.3-70-g09d2