aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/completion.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-08-26 17:34:54 +0200
committerGitHub <noreply@github.com>2024-08-26 17:34:54 +0200
commit983953858e5610b104d35725c7da1e9025f60421 (patch)
tree4f94b7d92a393f53325ed3dcc1805a313f3147d8 /runtime/lua/vim/lsp/completion.lua
parent688b961d13bd54a14836f08c3ded3121d3fb15a0 (diff)
downloadrneovim-983953858e5610b104d35725c7da1e9025f60421.tar.gz
rneovim-983953858e5610b104d35725c7da1e9025f60421.tar.bz2
rneovim-983953858e5610b104d35725c7da1e9025f60421.zip
fix(lsp): fix isIncomplete condition in completion trigger (#30130)
Follow up to https://github.com/neovim/neovim/pull/30028#discussion_r1726539370
Diffstat (limited to 'runtime/lua/vim/lsp/completion.lua')
-rw-r--r--runtime/lua/vim/lsp/completion.lua2
1 files changed, 1 insertions, 1 deletions
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