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

Commit 47277e1

Browse files
committed
check the result empty close#15
1 parent 85ce064 commit 47277e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lsp_extensions/inlay_hints.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ inlay_hints.get_callback = function(opts)
5151
end
5252

5353
return function(_, _, result, _, bufnr)
54-
if not result then
54+
if not result or vim.tbl_isempty(result) then
5555
print("[lsp_extensions.inlay_hints] No inlay hints found")
5656
return
5757
end

0 commit comments

Comments
 (0)