From 1ef9bb97740e7b55401e213da5dd6b04b77e56ff Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Tue, 31 Dec 2024 11:49:11 -0500 Subject: [PATCH] fix: return incomplete on err/nil from lsp Closes #719 --- lua/blink/cmp/sources/lsp/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/sources/lsp/completion.lua b/lua/blink/cmp/sources/lsp/completion.lua index 5c948cb3..4a0ff619 100644 --- a/lua/blink/cmp/sources/lsp/completion.lua +++ b/lua/blink/cmp/sources/lsp/completion.lua @@ -20,7 +20,7 @@ function completion.get_completion_for_client(client, context) local _, request_id = client.request('textDocument/completion', params, function(err, result) if err or result == nil then - resolve({ is_incomplete_forward = false, is_incomplete_backward = false, items = {} }) + resolve({ is_incomplete_forward = true, is_incomplete_backward = true, items = {} }) return end