mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(leap): add o to labeled_modes for delete operator
Also change alternative leap mappings from `gz` to more convenient `ga`
This commit is contained in:
parent
ec5981dfb1
commit
9cce19862e
1 changed files with 9 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ return {
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
end,
|
end,
|
||||||
opts = { labeled_modes = "nx" },
|
opts = { labeled_modes = "nxo" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ggandor/leap.nvim",
|
"ggandor/leap.nvim",
|
||||||
|
|
@ -41,17 +41,17 @@ return {
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
add = "gza", -- Add surrounding in Normal and Visual modes
|
add = "gaa", -- Add surrounding in Normal and Visual modes
|
||||||
delete = "gzd", -- Delete surrounding
|
delete = "gad", -- Delete surrounding
|
||||||
find = "gzf", -- Find surrounding (to the right)
|
find = "gaf", -- Find surrounding (to the right)
|
||||||
find_left = "gzF", -- Find surrounding (to the left)
|
find_left = "gaF", -- Find surrounding (to the left)
|
||||||
highlight = "gzh", -- Highlight surrounding
|
highlight = "gah", -- Highlight surrounding
|
||||||
replace = "gzr", -- Replace surrounding
|
replace = "gar", -- Replace surrounding
|
||||||
update_n_lines = "gzn", -- Update `n_lines`
|
update_n_lines = "gan", -- Update `n_lines`
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "gz", "", desc = "+surround" },
|
{ "ga", "", desc = "+surround" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue