fix(lsp): supports_method for checking inlay hint support (#1195)

This commit is contained in:
Maria José Solano 2023-07-23 09:09:48 -07:00 committed by GitHub
parent f6d646a325
commit 9a0543531d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ return {
if opts.inlay_hints.enabled and inlay_hint then
Util.on_attach(function(client, buffer)
if client.server_capabilities.inlayHintProvider then
if client.supports_method('textDocument/inlayHint') then
inlay_hint(buffer, true)
end
end)