Skip to content

Commit

Permalink
print a warning for unresolved links
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Mar 11, 2024
1 parent f03454e commit 9cb4ca5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lsplinks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function M.current()
local cursor = get_cursor_pos()
for _, link in ipairs(M.get()) do
if in_range(cursor, link.range) then
if not link.target then
vim.notify_once("lsplinks: documentLink/resolve is not implemented", vim.log.levels.WARN)
end
return link.target
end
end
Expand Down

0 comments on commit 9cb4ca5

Please sign in to comment.