diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index f27c1246..5a7c6fc0 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -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" }, {