From 4e4428dee8275fb55a96dff3e29577e0ec683735 Mon Sep 17 00:00:00 2001 From: Till Bungert Date: Sat, 11 Oct 2025 21:42:14 +0200 Subject: [PATCH] fix: vim.lsp.omnifunc should not throw away other items #35346 (cherry picked from commit 28157738e3de7675a7527f6e4e3fb01e6d30e1bf) --- runtime/lua/vim/lsp/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lua/vim/lsp/completion.lua b/runtime/lua/vim/lsp/completion.lua index 01f6dc0cc6..d1193bfec8 100644 --- a/runtime/lua/vim/lsp/completion.lua +++ b/runtime/lua/vim/lsp/completion.lua @@ -503,7 +503,7 @@ local function trigger(bufnr, clients, ctx) return end - local matches = {} + local matches --[[@type table]] = vim.fn.complete_info({ 'items' })['items'] local server_start_boundary --- @type integer? for client_id, response in pairs(responses) do local client = lsp.get_client_by_id(client_id)