aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/rust_analyzer.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-02 19:49:45 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-01-03 06:43:45 -0800
commit0caa2fe698d8742335ba8c322ecbc4b78022eb5a (patch)
tree373b2b32e5d14429f1f4f8f8326384445f7980f8 /lua/lspconfig/rust_analyzer.lua
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar.gz
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar.bz2
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar.lz
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar.xz
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.tar.zst
nvim-lspconfig-0caa2fe698d8742335ba8c322ecbc4b78022eb5a.zip
rust-analyzer: remove workaround for ignored capabilities
Diffstat (limited to 'lua/lspconfig/rust_analyzer.lua')
-rw-r--r--lua/lspconfig/rust_analyzer.lua12
1 files changed, 0 insertions, 12 deletions
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";