Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 8740c4b

Browse files
committed
fix: #17
1 parent 08a6662 commit 8740c4b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lua/lsp_extensions/inlay_hints.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ inlay_hints.get_callback = function(opts)
5050
only_current_line = false
5151
end
5252

53-
return function(_, _, result, _, bufnr)
54-
if not result or vim.tbl_isempty(result) or type(result) == 'number' then
53+
return function(err, _, result, _, bufnr)
54+
-- I'm pretty sure this only happens for unsupported items.
55+
if err or type(result) == 'number' then
56+
return
57+
end
58+
59+
if not result or vim.tbl_isempty(result) then
5560
print("[lsp_extensions.inlay_hints] No inlay hints found")
5661
return
5762
end

0 commit comments

Comments
 (0)