diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-11-05 17:34:21 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-11-18 17:09:53 +0000 |
commit | 989a37a594649528f28432388c0e7e28e8be2753 (patch) | |
tree | 995df7bc856bc61d69d6666d3c569b5bb1a1f905 /runtime/doc | |
parent | e2ad251c8d01726ecd54d925b5280ab32b448c13 (diff) | |
download | rneovim-989a37a594649528f28432388c0e7e28e8be2753.tar.gz rneovim-989a37a594649528f28432388c0e7e28e8be2753.tar.bz2 rneovim-989a37a594649528f28432388c0e7e28e8be2753.zip |
refactor(lsp): fold in dynamic_registration code into the client
Problem:
Capability register logic is spread across 3 files.
Solution:
- Consolidate (and simplify) logic into the client.
- Teach client.supports_method about resolve methods
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 7d50cb52eb..b7a4f0ea01 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -968,7 +968,7 @@ Lua module: vim.lsp.client *lsp-client* request before sending kill -15. If set to false, nvim exits immediately after sending the "shutdown" request to the server. - • {get_language_id} (`fun(bufnr: integer, filetype: string): string`) + • {get_language_id} (`fun(bufnr: integer, filetype?: string): string`) • {capabilities} (`lsp.ClientCapabilities`) The capabilities provided by the client (editor or tool) • {dynamic_capabilities} (`lsp.DynamicCapabilities`) @@ -1089,8 +1089,9 @@ Lua module: vim.lsp.client *lsp-client* `initialize` in the LSP spec. • {name}? (`string`, default: client-id) Name in log messages. - • {get_language_id}? (`fun(bufnr: integer, filetype: string): string`) - Language ID as string. Defaults to the filetype. + • {get_language_id}? (`fun(bufnr: integer, filetype?: string): string`) + Language ID as string. Defaults to the buffer + filetype. • {offset_encoding}? (`'utf-8'|'utf-16'|'utf-32'`) The encoding that the LSP server expects. Client does not verify this is correct. |