27 lines
679 B
Lua
27 lines
679 B
Lua
|
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,
|
||
|
}
|