From d4e100dd5f84d77b3dd16af2d7f2590a8b2bd030 Mon Sep 17 00:00:00 2001 From: moxie Date: Fri, 13 Mar 2026 20:31:23 +0200 Subject: fix: add nullable type annotation for link_node --- lua/muwiki/links/detection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/muwiki/links/detection.lua b/lua/muwiki/links/detection.lua index 356e0ba..7b1f317 100644 --- a/lua/muwiki/links/detection.lua +++ b/lua/muwiki/links/detection.lua @@ -24,7 +24,7 @@ function M.get_link() return nil end - local link_node = node + local link_node = node ---@type TSNode|nil while link_node and link_node:type() ~= 'inline_link' do link_node = link_node:parent() end -- cgit v1.2.3