From 28157738e3de7675a7527f6e4e3fb01e6d30e1bf 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 --- 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 01f36cfc9f..729cada68a 100644 --- a/runtime/lua/vim/lsp/completion.lua +++ b/runtime/lua/vim/lsp/completion.lua @@ -502,7 +502,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)