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