From 9cb4ca563773322c0cfd8612b2f996bf66b163fc Mon Sep 17 00:00:00 2001 From: Ilia Choly Date: Mon, 11 Mar 2024 10:44:20 -0400 Subject: [PATCH] print a warning for unresolved links --- lua/lsplinks.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lsplinks.lua b/lua/lsplinks.lua index 376e8c4..b402e4f 100644 --- a/lua/lsplinks.lua +++ b/lua/lsplinks.lua @@ -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