aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/mini/surround.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/mini/surround.lua')
-rw-r--r--.config/nvim/lua/plugins/mini/surround.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/mini/surround.lua b/.config/nvim/lua/plugins/mini/surround.lua
new file mode 100644
index 0000000..7a05e44
--- /dev/null
+++ b/.config/nvim/lua/plugins/mini/surround.lua
@@ -0,0 +1,15 @@
+return {
+ "echasnovski/mini.surround",
+ version = false,
+ opts = {
+ mappings = {
+ add = "\\a", -- Add surrounding in Normal and Visual modes
+ delete = "\\d", -- Delete surrounding
+ find = "\\f", -- Find surrounding (to the right)
+ find_left = "\\F", -- Find surrounding (to the left)
+ highlight = "\\h", -- Highlight surrounding
+ replace = "\\r", -- Replace surrounding
+ update_n_lines = "\\n", -- Update `n_lines`
+ },
+ },
+}