added mini surround

This commit is contained in:
2024-06-16 22:48:08 +02:00
parent 7cc886c641
commit 3860fb3d73
3 changed files with 22 additions and 13 deletions

View File

@ -0,0 +1,20 @@
return {
'echasnovski/mini.surround',
version = '*',
config = function()
require('mini.surround').setup({
mappings = {
add = 'sa', -- Add surrounding in Normal and Visual modes
delete = 'sd', -- Delete surrounding
find = 'sf', -- Find surrounding (to the right)
find_left = 'sF', -- Find surrounding (to the left)
highlight = 'sh', -- Highlight surrounding
replace = 'sr', -- Replace surrounding
update_n_lines = 'sn', -- Update `n_lines`
suffix_last = 'l', -- Suffix to search with "prev" method
suffix_next = 'n', -- Suffix to search with "next" method
},
})
end,
}