Show jump locations in a floating window.
Screen.Recording.2023-07-12.at.11.45.52.mov
If no keymaps already exist, ones we will be automatically created for <C-i>
and <C-o>
.
Otherwise, if you use custom keymaps for jumping then use the following:
-- Jump backwards
vim.keymap.set('n', '<M-k>', function()
require 'whatthejump'.show_jumps(false)
return '<C-o>'
end, {expr = true})
-- Jump forwards
vim.keymap.set('n', '<M-j>', function()
require 'whatthejump'.show_jumps(true)
return '<C-i>'
end, {expr = true})