Skip to content

Commit 9589d57

Browse files
committed
feat(mini.operators): update plugin configurations and key mappings
- Changed key mappings for mini.operators to use leader keys. - Updated key mappings for mini.surround to improve usability. - Revised documentation to reflect new key mappings for operators.
1 parent 119b36d commit 9589d57

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

lazy-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"treewalker.nvim": { "branch": "main", "commit": "cfae49dedd041dbe867c2b3d0b081fc381a735e9" },
3535
"ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" },
3636
"vim-fugitive": { "branch": "master", "commit": "593f831d6f6d779cbabb70a4d1e6b1b1936a88af" },
37-
"vim-test": { "branch": "master", "commit": "fc80488d509e8cab635bb3b6c75f9946f562e21e" }
37+
"vim-test": { "branch": "master", "commit": "bdbbdee521d41fbc7c7f3edff54ccc50272b7cbb" }
3838
}

lua/plugins/mini.operators.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ return {
55
"echasnovski/mini.operators",
66
opts = {
77
exchange = {
8-
prefix = "sx",
8+
prefix = "<leader>x",
99
},
1010
multiply = {
1111
prefix = "<leader>p",
1212
},
1313
replace = {
14-
prefix = "s",
14+
prefix = "<leader>r",
1515
},
1616
sort = {
1717
prefix = "<leader>s",

lua/plugins/mini.surround.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ return {
55
"echasnovski/mini.surround",
66
opts = {
77
mappings = {
8-
add = "ys",
9-
delete = "ds",
8+
add = "sa",
9+
delete = "sd",
1010
find = "",
1111
find_left = "",
1212
highlight = "",
13-
replace = "cs",
13+
replace = "sr",
1414
update_n_lines = "",
1515
},
1616
},

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ Random features added.
216216

217217
### Operators
218218

219-
- `ys{motion}{char}` add surrounding character
220-
- `ds{char}` delete surrounding character
221-
- `cs{target}{replacement}` replace surrounding character
222-
- `sx{motion1}sx{motion2}` exchange
219+
- `sa{motion}{char}` add surrounding character
220+
- `sd{char}` delete surrounding character
221+
- `sr{target}{replacement}` replace surrounding character
222+
- `<leader>x{motion1}<leader>x{motion2}` exchange
223223
- `<leader>p{motion}` duplicate
224-
- `s{motion}` substitute with last yank
224+
- `<leader>r{motion}` substitute with last yank
225225
- `<leader>s{motion}` sort
226226

227227
### Completion

0 commit comments

Comments
 (0)