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 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" },
}, },
}, },