aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-11-19 10:11:40 +0000
committerLewis Russell <me@lewisr.dev>2024-11-19 12:19:05 +0000
commit081beb3659bd6d8efc3e977a160b1e72becbd8a2 (patch)
treefd9da850f3df20c591175cc53ee236f2140967c3 /runtime/doc
parent0183c3247455a4c2364e5e78d6b716e98ef16aeb (diff)
downloadrneovim-081beb3659bd6d8efc3e977a160b1e72becbd8a2.tar.gz
rneovim-081beb3659bd6d8efc3e977a160b1e72becbd8a2.tar.bz2
rneovim-081beb3659bd6d8efc3e977a160b1e72becbd8a2.zip
fix(lsp): restore get_language_id behaviour
Ensure filetype is always passed. Fixes #31262
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index b7a4f0ea01..64bef849fc 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,7 +1089,7 @@ 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`)
+ • {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