Skip to content

Commit

Permalink
fix(lsp): supports_method for checking inlay hint support (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSolOs committed Jul 23, 2023
1 parent f6d646a commit 9a05435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/plugins/lsp/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 9a05435

Please sign in to comment.