fix(lsp): supports_method for checking inlay hint support

This commit is contained in:
Maria José Solano 2023-07-22 21:11:56 -07:00 committed by GitHub
parent 142e6bec20
commit 10d15ea817
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 if opts.inlay_hints.enabled and inlay_hint then
Util.on_attach(function(client, buffer) Util.on_attach(function(client, buffer)
if client.server_capabilities.inlayHintProvider then if client.supports_method('textDocument/inlayHint') then
inlay_hint(buffer, true) inlay_hint(buffer, true)
end end
end) end)