fix(lsp): correct client_id parsing in lvim-info (#2071)

This commit is contained in:
kylo252 2021-12-12 19:43:35 +01:00 committed by GitHub
parent 53bb4effbc
commit 8ffbe596c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,10 @@ function M.get_client_capabilities(client_id)
break break
end end
end end
else
client = vim.lsp.get_client_by_id(tonumber(client_id))
end end
if not client_id then if not client then
error "Unable to determine client_id" error "Unable to determine client_id"
return return
end end