Skip to content

Commit 957a57a

Browse files
committed
fix: check if LSP supports resolve provider
closes #48
1 parent a89ae20 commit 957a57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/sources/lsp.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ end
147147

148148
function lsp:resolve(item, callback)
149149
local client = vim.lsp.get_client_by_id(item.client_id)
150-
if client == nil then
150+
if client == nil or not client.server_capabilities.completionProvider.resolveProvider then
151151
callback(item)
152152
return
153153
end

0 commit comments

Comments
 (0)