From afd343c399b28a068ddd7974c97e3623b01d1737 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 14 Sep 2023 16:19:30 +0200 Subject: [PATCH] surround maps --- lua/plex/plugins/coding.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lua/plex/plugins/coding.lua b/lua/plex/plugins/coding.lua index 7ad2a80..93e590a 100644 --- a/lua/plex/plugins/coding.lua +++ b/lua/plex/plugins/coding.lua @@ -204,13 +204,13 @@ return { local plugin = require('lazy.core.config').spec.plugins['mini.surround'] local opts = require('lazy.core.plugin').values(plugin, 'opts', false) local mappings = { - { opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x' } }, - { opts.mappings.delete, desc = 'Delete surrounding' }, - { opts.mappings.find, desc = 'Find right surrounding' }, - { opts.mappings.find_left, desc = 'Find left surrounding' }, - { opts.mappings.highlight, desc = 'Highlight surrounding' }, - { opts.mappings.replace, desc = 'Replace surrounding' }, - { opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`' }, + { opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } }, + { opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`', mode = { 'n', 'x', 'v' } }, } mappings = vim.tbl_filter(function(m) return m[1] and #m[1] > 0 @@ -220,12 +220,12 @@ return { opts = { mappings = { add = 'sa', -- Add surrounding in Normal and Visual modes - delete = 'ds', -- Delete surrounding - find = 'gzf', -- Find surrounding (to the right) - find_left = 'gzF', -- Find surrounding (to the left) - highlight = 'gzh', -- Highlight surrounding - replace = 'cs', -- Replace surrounding - update_n_lines = 'gzn', -- Update `n_lines` + delete = 'sd', -- Delete surrounding + find = 'sf', -- Find surrounding (to the right) + find_left = 'sF', -- Find surrounding (to the left) + highlight = 'sh', -- Highlight surrounding + replace = 'cs', -- Replace surrounding + update_n_lines = 'su', -- Update `n_lines` }, }, },