diff options
| -rw-r--r-- | CONFIG.md | 105 | ||||
| -rw-r--r-- | lua/lspconfig/rust_analyzer.lua | 12 |
2 files changed, 1 insertions, 116 deletions
@@ -2962,7 +2962,7 @@ require'lspconfig'.omnisharp.setup{} Commands: Default Values: - cmd = { "/home/runner/.cache/nvim/lspconfig/omnisharp/run", "--languageserver", "--hostPID", "2563" } + cmd = { "/home/runner/.cache/nvim/lspconfig/omnisharp/run", "--languageserver", "--hostPID", "2483" } filetypes = { "cs", "vb" } init_options = {} on_new_config = <function 1> @@ -4443,109 +4443,6 @@ require'lspconfig'.rust_analyzer.setup{} Commands: Default Values: - capabilities = { - callHierarchy = { - dynamicRegistration = false - }, - textDocument = { - codeAction = { - codeActionLiteralSupport = { - codeActionKind = { - valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } - } - }, - dynamicRegistration = false - }, - completion = { - completionItem = { - commitCharactersSupport = false, - deprecatedSupport = false, - documentationFormat = { "markdown", "plaintext" }, - preselectSupport = false, - snippetSupport = false - }, - completionItemKind = { - valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } - }, - contextSupport = false, - dynamicRegistration = false - }, - declaration = { - linkSupport = true - }, - definition = { - linkSupport = true - }, - documentHighlight = { - dynamicRegistration = false - }, - documentSymbol = { - dynamicRegistration = false, - hierarchicalDocumentSymbolSupport = true, - symbolKind = { - valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } - } - }, - hover = { - contentFormat = { "markdown", "plaintext" }, - dynamicRegistration = false - }, - implementation = { - linkSupport = true - }, - references = { - dynamicRegistration = false - }, - rename = { - dynamicRegistration = false, - prepareSupport = true, - prepareSupportDefaultBehavior = 1 - }, - signatureHelp = { - dynamicRegistration = false, - signatureInformation = { - documentationFormat = { "markdown", "plaintext" } - } - }, - synchronization = { - didSave = true, - dynamicRegistration = false, - willSave = false, - willSaveWaitUntil = false - }, - typeDefinition = { - linkSupport = true - } - }, - window = { - showDocument = { - support = false - }, - showMessage = { - messageActionItem = { - additionalPropertiesSupport = false - } - }, - workDoneProgress = true - }, - workspace = { - applyEdit = true, - symbol = { - dynamicRegistration = false, - hierarchicalWorkspaceSymbolSupport = true, - symbolKind = { - valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } - } - }, - workspaceEdit = { - changeAnnotationSupport = { - groupsOnLabel = true - }, - normalizesLineEndings = true - }, - workspaceFolders = true - } - } cmd = { "rust-analyzer" } filetypes = { "rust" } root_dir = root_pattern("Cargo.toml", "rust-project.json") 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"; |
