From e2f6d46192cd8f576734dc1a35fe151a4510bad5 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 6 Apr 2023 01:42:19 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 124 ++++++++++++++++++++++++++++++++++++++++++ doc/server_configurations.txt | 124 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 248 insertions(+) diff --git a/doc/server_configurations.md b/doc/server_configurations.md index d791ab00..fe4a5471 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -574,6 +574,130 @@ require'lspconfig'.arduino_language_server.setup{} **Default values:** + - `capabilities` : + ```lua + { + textDocument = { + callHierarchy = { + dynamicRegistration = false + }, + codeAction = { + codeActionLiteralSupport = { + codeActionKind = { + valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } + } + }, + dataSupport = true, + dynamicRegistration = false, + isPreferredSupport = true, + resolveSupport = { + properties = { "edit" } + } + }, + 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 + }, + publishDiagnostics = { + relatedInformation = true, + tagSupport = { + valueSet = { 1, 2 } + } + }, + references = { + dynamicRegistration = false + }, + rename = { + dynamicRegistration = false, + prepareSupport = true + }, + semanticTokens = vim.NIL, + signatureHelp = { + dynamicRegistration = false, + signatureInformation = { + activeParameterSupport = true, + documentationFormat = { "markdown", "plaintext" }, + parameterInformation = { + labelOffsetSupport = true + } + } + }, + synchronization = { + didSave = true, + dynamicRegistration = false, + willSave = true, + willSaveWaitUntil = true + }, + typeDefinition = { + linkSupport = true + } + }, + window = { + showDocument = { + support = true + }, + showMessage = { + messageActionItem = { + additionalPropertiesSupport = false + } + }, + workDoneProgress = true + }, + workspace = { + applyEdit = true, + configuration = true, + didChangeWatchedFiles = { + dynamicRegistration = false, + relativePatternSupport = true + }, + semanticTokens = vim.NIL, + 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 = { + resourceOperations = { "rename", "create", "delete" } + }, + workspaceFolders = true + } + } + ``` - `cmd` : ```lua { "arduino-language-server" } diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index d791ab00..fe4a5471 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -574,6 +574,130 @@ require'lspconfig'.arduino_language_server.setup{} **Default values:** + - `capabilities` : + ```lua + { + textDocument = { + callHierarchy = { + dynamicRegistration = false + }, + codeAction = { + codeActionLiteralSupport = { + codeActionKind = { + valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } + } + }, + dataSupport = true, + dynamicRegistration = false, + isPreferredSupport = true, + resolveSupport = { + properties = { "edit" } + } + }, + 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 + }, + publishDiagnostics = { + relatedInformation = true, + tagSupport = { + valueSet = { 1, 2 } + } + }, + references = { + dynamicRegistration = false + }, + rename = { + dynamicRegistration = false, + prepareSupport = true + }, + semanticTokens = vim.NIL, + signatureHelp = { + dynamicRegistration = false, + signatureInformation = { + activeParameterSupport = true, + documentationFormat = { "markdown", "plaintext" }, + parameterInformation = { + labelOffsetSupport = true + } + } + }, + synchronization = { + didSave = true, + dynamicRegistration = false, + willSave = true, + willSaveWaitUntil = true + }, + typeDefinition = { + linkSupport = true + } + }, + window = { + showDocument = { + support = true + }, + showMessage = { + messageActionItem = { + additionalPropertiesSupport = false + } + }, + workDoneProgress = true + }, + workspace = { + applyEdit = true, + configuration = true, + didChangeWatchedFiles = { + dynamicRegistration = false, + relativePatternSupport = true + }, + semanticTokens = vim.NIL, + 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 = { + resourceOperations = { "rename", "create", "delete" } + }, + workspaceFolders = true + } + } + ``` - `cmd` : ```lua { "arduino-language-server" } -- cgit v1.2.3-70-g09d2