fix(lsp): fix isIncomplete condition in completion trigger (#30130)

Follow up to https://github.com/neovim/neovim/pull/30028#discussion_r1726539370
This commit is contained in:
Mathias Fußenegger 2024-08-26 17:34:54 +02:00 committed by GitHub
parent 688b961d13
commit 983953858e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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