From 081beb3659bd6d8efc3e977a160b1e72becbd8a2 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Tue, 19 Nov 2024 10:11:40 +0000 Subject: fix(lsp): restore get_language_id behaviour Ensure filetype is always passed. Fixes #31262 --- runtime/doc/lsp.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/doc') 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 -- cgit