marleyvim/nvim/lua/plugins/coding/mini-surround.lua

27 lines
679 B
Lua
Raw Normal View History

2025-01-01 14:24:15 -08:00
local keys = {
add = 'gsa',
delete = 'gsd',
find = 'gsf',
find_left = 'gsF',
highlight = 'gsh',
replace = 'gsr',
update_n_lines = 'gsn',
}
return {
'mini.surround',
keys = {
{ keys.add, desc = 'add surrounding', mode = { 'n', 'v' } },
{ keys.delete, desc = 'delete surrounding' },
{ keys.find, desc = 'find right surrounding' },
{ keys.find_left, desc = 'find left surrounding' },
{ keys.highlight, desc = 'highlight surrounding' },
{ keys.replace, desc = 'replace surrounding' },
{ keys.update_n_lines, desc = 'update n_lines' },
},
after = function()
require('mini.surround').setup({
mappings = keys,
})
end,
}