aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt7
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.