feat: added mini.surround

This commit is contained in:
Folke Lemaitre 2023-01-04 00:53:42 +01:00
parent ad8330208e
commit 2fe5053284
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -84,6 +84,26 @@ return {
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
{ "JoosepAlviste/nvim-ts-context-commentstring" },
{