i finally understand leap

This commit is contained in:
Christoph J. Scherr 2023-09-07 17:00:51 +02:00
parent 993db70165
commit a3ce24e379
1 changed files with 8 additions and 6 deletions

View File

@ -170,7 +170,9 @@ return {
-----------------------------------------------------------------------------
{
-- NOTE: This is leap for selecting things!
'ggandor/flit.nvim',
enabled = true,
keys = function()
---@type LazyKeys[]
local ret = {}
@ -187,17 +189,17 @@ return {
'ggandor/leap.nvim',
-- stylua: ignore
keys = {
{ 't', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
{ 'T', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
{ '<leader>wt', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap from windows' },
{ 'gl', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
{ 'gL', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
{ '<leader>wl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
},
config = function ()
local leap = require('leap')
leap.opts.case_sensitive = false
leap.opts.safe_labels = { 's', 'f', 'n', 'u', 't', 'e' }
leap.opts.labels = { 's', 'f', 'n', 'j', 'k', 'r', 'e', 'r', 'm',
'ö', 'b', 'v', 'o', 'i', 'u', 'z', 'w', '2', '3', '4', '5', '6',
'7', '8', '9' }
--leap.opts.labels = { 'a', 's', 'f', 'n', 'j', 'k', 'r', 'e', 'r', 'm',
-- 'ö', 'b', 'v', 'u', 'z', 'w', '2', '3', '4', '5', '6',
-- '7', '8', '9' }
end,
},