mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Fix: make follow link work with brackets (closes #183)
Added col correction to lua/taglinks/taglinks.lua.
This commit is contained in:
@@ -2190,8 +2190,8 @@ local function FollowLink(opts)
|
||||
-- we are in a link
|
||||
vim.cmd("normal yi]")
|
||||
title = vim.fn.getreg('"0')
|
||||
title = remove_alias(title)
|
||||
title = title:gsub("^(%[)(.+)(%])$", "%2")
|
||||
title = remove_alias(title)
|
||||
else
|
||||
-- we are in an external [link]
|
||||
vim.cmd("normal yi)")
|
||||
|
||||
Reference in New Issue
Block a user