surround maps
This commit is contained in:
parent
df7318dac1
commit
afd343c399
|
@ -204,13 +204,13 @@ return {
|
||||||
local plugin = require('lazy.core.config').spec.plugins['mini.surround']
|
local plugin = require('lazy.core.config').spec.plugins['mini.surround']
|
||||||
local opts = require('lazy.core.plugin').values(plugin, 'opts', false)
|
local opts = require('lazy.core.plugin').values(plugin, 'opts', false)
|
||||||
local mappings = {
|
local mappings = {
|
||||||
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x' } },
|
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.delete, desc = 'Delete surrounding' },
|
{ opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.find, desc = 'Find right surrounding' },
|
{ opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.find_left, desc = 'Find left surrounding' },
|
{ opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.highlight, desc = 'Highlight surrounding' },
|
{ opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.replace, desc = 'Replace surrounding' },
|
{ opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } },
|
||||||
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`' },
|
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`', mode = { 'n', 'x', 'v' } },
|
||||||
}
|
}
|
||||||
mappings = vim.tbl_filter(function(m)
|
mappings = vim.tbl_filter(function(m)
|
||||||
return m[1] and #m[1] > 0
|
return m[1] and #m[1] > 0
|
||||||
|
@ -220,12 +220,12 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
|
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
|
||||||
delete = 'ds', -- Delete surrounding
|
delete = '<leader>sd', -- Delete surrounding
|
||||||
find = 'gzf', -- Find surrounding (to the right)
|
find = '<leader>sf', -- Find surrounding (to the right)
|
||||||
find_left = 'gzF', -- Find surrounding (to the left)
|
find_left = '<leader>sF', -- Find surrounding (to the left)
|
||||||
highlight = 'gzh', -- Highlight surrounding
|
highlight = '<leader>sh', -- Highlight surrounding
|
||||||
replace = 'cs', -- Replace surrounding
|
replace = '<leader>cs', -- Replace surrounding
|
||||||
update_n_lines = 'gzn', -- Update `n_lines`
|
update_n_lines = '<leader>su', -- Update `n_lines`
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue