neovim-confs/lua/plex/plugins/extras/editor/anyjump.lua

23 lines
668 B
Lua
Raw Permalink Normal View History

2023-09-06 00:26:45 +02:00
return {
{
'pechorin/any-jump.vim',
cmd = { 'AnyJump', 'AnyJumpVisual' },
keys = {
{ '<leader>ii', '<cmd>AnyJump<CR>', desc = 'Any Jump' },
{ '<leader>ii', '<cmd>AnyJumpVisual<CR>', mode = 'x', desc = 'Any Jump' },
{ '<leader>ib', '<cmd>AnyJumpBack<CR>', desc = 'Any Jump Back' },
{ '<leader>il', '<cmd>AnyJumpLastResults<CR>', desc = 'Any Jump Resume' },
},
init = function()
vim.g.any_jump_disable_default_keybindings = 1
vim.api.nvim_create_autocmd('FileType', {
2023-09-06 10:19:56 +02:00
group = vim.api.nvim_create_augroup('plex_any-jump', {}),
2023-09-06 00:26:45 +02:00
pattern = 'any-jump',
callback = function()
vim.opt.cursorline = true
end,
})
end,
},
}