Files
keycodex/lua/plugins/surround.lua
T
2024-08-15 19:28:13 +05:45

16 lines
566 B
Lua

return {
'echasnovski/mini.surround',
event = { 'BufReadPre', 'BufNewFile', 'BufWritePre' },
opts = {
mappings = {
add = 'gsa', -- Add surrounding in Normal and Visual modes
delete = 'gsd', -- Delete surrounding
find = 'gsf', -- Find surrounding (to the right)
find_left = 'gsF', -- Find surrounding (to the left)
highlight = 'gsh', -- Highlight surrounding
replace = 'gsr', -- Replace surrounding
update_n_lines = 'gsn', -- Update `n_lines`
},
},
}