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:
Nikita Rudenko 2025-05-06 14:28:56 +03:00
parent ec5981dfb1
commit 9cce19862e

View file

@ -14,7 +14,7 @@ return {
end
return ret
end,
opts = { labeled_modes = "nx" },
opts = { labeled_modes = "nxo" },
},
{
"ggandor/leap.nvim",
@ -41,17 +41,17 @@ return {
optional = true,
opts = {
mappings = {
add = "gza", -- Add surrounding in Normal and Visual modes
delete = "gzd", -- Delete surrounding
find = "gzf", -- Find surrounding (to the right)
find_left = "gzF", -- Find surrounding (to the left)
highlight = "gzh", -- Highlight surrounding
replace = "gzr", -- Replace surrounding
update_n_lines = "gzn", -- Update `n_lines`
add = "gaa", -- Add surrounding in Normal and Visual modes
delete = "gad", -- Delete surrounding
find = "gaf", -- Find surrounding (to the right)
find_left = "gaF", -- Find surrounding (to the left)
highlight = "gah", -- Highlight surrounding
replace = "gar", -- Replace surrounding
update_n_lines = "gan", -- Update `n_lines`
},
},
keys = {
{ "gz", "", desc = "+surround" },
{ "ga", "", desc = "+surround" },
},
},