From 983953858e5610b104d35725c7da1e9025f60421 Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Mon, 26 Aug 2024 17:34:54 +0200 Subject: fix(lsp): fix isIncomplete condition in completion trigger (#30130) Follow up to https://github.com/neovim/neovim/pull/30028#discussion_r1726539370 --- runtime/lua/vim/lsp/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp/completion.lua b/runtime/lua/vim/lsp/completion.lua index 89d9a0e9b1..e28fec5e25 100644 --- a/runtime/lua/vim/lsp/completion.lua +++ b/runtime/lua/vim/lsp/completion.lua @@ -410,7 +410,7 @@ local function trigger(bufnr, clients) reset_timer() Context:cancel_pending() - if tonumber(vim.fn.pumvisible()) == 1 and Context.isIncomplete then + if tonumber(vim.fn.pumvisible()) == 1 and not Context.isIncomplete then return end -- cgit