Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 622 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 622 Bytes

whatthejump.nvim

Show jump locations in a floating window.

Screen.Recording.2023-07-12.at.11.45.52.mov

Usage

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})