Skip to content

Commit

Permalink
fix: return incomplete on err/nil from lsp
Browse files Browse the repository at this point in the history
Closes #719
  • Loading branch information
Saghen committed Dec 31, 2024
1 parent 9fa48e9 commit 1ef9bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/lsp/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1ef9bb9

Please sign in to comment.