config leap
This commit is contained in:
parent
f10141d2a1
commit
1f40a8fd31
|
@ -106,11 +106,27 @@ return {
|
||||||
{
|
{
|
||||||
'ggandor/leap.nvim',
|
'ggandor/leap.nvim',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
opts = {},
|
||||||
keys = {
|
keys = {
|
||||||
{ 's', '<plug>(leap-forward)', desc = 'leap forward' },
|
{ 's', '<plug>(leap-forward)', desc = 'leap forward' },
|
||||||
{ 'S', '<plug>(leap-backward)', desc = 'leap backward' },
|
{ 'S', '<plug>(leap-backward)', desc = 'leap backward' },
|
||||||
{ 'gs', '<plug>(leap-from-window)', desc = 'leap from window' },
|
{ 'gs', '<plug>(leap-from-window)', desc = 'leap from window' },
|
||||||
},
|
},
|
||||||
|
config = function()
|
||||||
|
-- idk why it doesn't work when I just define an opts table, but that is
|
||||||
|
-- so
|
||||||
|
|
||||||
|
local leap = require 'leap'
|
||||||
|
|
||||||
|
leap.opts.safe_labels = 'sfnutSFNLHMUGTZ?'
|
||||||
|
leap.opts.labels = 'sfnjklhodweimbuyvrgtaqpcxzSFNJKLHODWEIMBUYVRGTAQPCXZ?'
|
||||||
|
leap.opts.special_keys = {
|
||||||
|
next_target = '<enter>',
|
||||||
|
prev_target = '<tab>',
|
||||||
|
next_group = '<space>',
|
||||||
|
prev_group = '<tab>',
|
||||||
|
}
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'ggandor/flit.nvim',
|
'ggandor/flit.nvim',
|
||||||
|
|
Loading…
Reference in New Issue