feat: added mini.surround
This commit is contained in:
1 file changed
+20
@@ -84,6 +84,26 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- surround
|
||||||
|
{
|
||||||
|
"echasnovski/mini.surround",
|
||||||
|
keys = { "gz" },
|
||||||
|
config = function()
|
||||||
|
-- use gz mappings instead of s to prevent conflict with leap
|
||||||
|
require("mini.surround").setup({
|
||||||
|
mappings = {
|
||||||
|
add = "gza", -- Add surrounding in Normal and Visual modes
|
||||||
|
delete = "gzd", -- Delete surrounding
|
||||||
|
find = "gzf", -- Find surrounding (to the right)
|
||||||
|
find_left = "gzF", -- Find surrounding (to the left)
|
||||||
|
highlight = "gzh", -- Highlight surrounding
|
||||||
|
replace = "gzr", -- Replace surrounding
|
||||||
|
update_n_lines = "gzn", -- Update `n_lines`
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- comments
|
-- comments
|
||||||
{ "JoosepAlviste/nvim-ts-context-commentstring" },
|
{ "JoosepAlviste/nvim-ts-context-commentstring" },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user