Closed HUAHUAI23 closed 1 year ago
Closing this PR, as this should already be working. See line 193 in the cursor.lua file, in the go_to_heading
function:
vim.api.nvim_buf_set_mark(0, '`', position[1], position[2], {})
Please do open an issue if this does not seem to be working properly. Thanks!
Set a mark before the anchor links jump doesn't seem to support jumplist eg:
<ctrl-i>
and<ctrl-o>
https://user-images.githubusercontent.com/43649186/212915179-7625754f-2792-4044-9ae0-67a2b10abf6e.mp4
so i add
vim.cmd [[ normal! m' ]]
https://neovim.discourse.group/t/how-to-add-the-current-cursor-position-to-the-jump-list/1585https://user-images.githubusercontent.com/43649186/212915739-efbc9f28-fd85-487c-aeee-a9de10895e88.mp4