i finally understand leap
This commit is contained in:
parent
993db70165
commit
a3ce24e379
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue