Closed krehwell closed 1 year ago
I have this map
vim.keymap.set("n", "[[", ":lua require('barbecue.ui').navigate(-1)<CR>")
once the cursor moved, I want to get it back to the previous position with <C-o>
<C-o>
we can add a jumplist before the navigate function
-- lua/barbecue/ui.lua > M.navigate -- ... -- create a jump list vim.cmd("normal! m'") local clickable_entry = Entry.from(clickable_entries[index]) clickable_entry:navigate()
Requirements
Problem
I have this map
once the cursor moved, I want to get it back to the previous position with
<C-o>
Solution Suggestion
we can add a jumplist before the navigate function
Workaround