From 89b7af86ffa0dda7556ad340344d238f6e84f346 Mon Sep 17 00:00:00 2001 From: "markus.dieckmann" Date: Mon, 12 May 2025 13:00:14 +0200 Subject: [PATCH] mini --- nvim/lua/plugins/mini.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nvim/lua/plugins/mini.lua diff --git a/nvim/lua/plugins/mini.lua b/nvim/lua/plugins/mini.lua new file mode 100644 index 0000000..84208be --- /dev/null +++ b/nvim/lua/plugins/mini.lua @@ -0,0 +1,21 @@ +return { + "echasnovski/mini.nvim", + version = "*", + config = function() + require("mini.pairs").setup({}) + 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` + + suffix_last = "l", -- Suffix to search with "prev" method + suffix_next = "n", -- Suffix to search with "next" method + }, + }) + end, +}