@@ -46,15 +46,15 @@ local function config(opts)
46
46
if opts .next_obj .a_next then
47
47
local key = opts .next_obj .a_next
48
48
local motion = key :sub (1 , 1 )
49
- local opt = { noremap = true , desc = " around next pairs" }
49
+ local opt = { desc = " around next pairs" }
50
50
vim .keymap .set (" x" , key , function () next_obj (motion ) end , opt )
51
51
vim .keymap .set (" o" , key , function () next_obj (motion ) end , opt )
52
52
end
53
53
54
54
if opts .next_obj .i_next then
55
55
local key = opts .next_obj .i_next
56
56
local motion = key :sub (1 , 1 )
57
- local opt = { noremap = true , desc = " in next pairs" }
57
+ local opt = { desc = " in next pairs" }
58
58
vim .keymap .set (" x" , key , function () next_obj (motion ) end , opt )
59
59
vim .keymap .set (" o" , key , function () next_obj (motion ) end , opt )
60
60
end
@@ -67,11 +67,11 @@ local function config(opts)
67
67
table.insert (chars , ch )
68
68
end
69
69
for _ , ch in ipairs (chars ) do
70
- local opt = { noremap = true , desc = " in pairs of " .. ch }
70
+ local opt = { desc = " in pairs of " .. ch }
71
71
vim .keymap .set (" x" , " i" .. ch , function () quick .normal (" xt" , " T" .. ch .. " ot" .. ch ) end , opt )
72
72
vim .keymap .set (" o" , " i" .. ch , function () quick .normal (" x" , " vi" .. ch ) end , opt )
73
73
74
- opt = { noremap = true , desc = " around pairs of " .. ch }
74
+ opt = { desc = " around pairs of " .. ch }
75
75
vim .keymap .set (" x" , " a" .. ch , function () quick .normal (" xt" , " F" .. ch .. " of" .. ch ) end , opt )
76
76
vim .keymap .set (" o" , " a" .. ch , function () quick .normal (" x" , " va" .. ch ) end , opt )
77
77
end
@@ -80,13 +80,13 @@ local function config(opts)
80
80
-- Line support {{{
81
81
if opts .line then
82
82
if opts .line .i_line then
83
- local opt = { noremap = true , desc = " in current line" }
83
+ local opt = { desc = " in current line" }
84
84
vim .keymap .set (" x" , " il" , function () quick .normal (" xt" , " g_o^" ) end , opt )
85
85
vim .keymap .set (" o" , " il" , function () quick .normal (" x" , " vil" ) end , opt )
86
86
end
87
87
88
88
if opts .line .a_line then
89
- local opt = { noremap = true , desc = " around current line" }
89
+ local opt = { desc = " around current line" }
90
90
vim .keymap .set (" x" , " al" , function () quick .normal (" xt" , " $o0" ) end , opt )
91
91
vim .keymap .set (" o" , " al" , function () quick .normal (" x" , " val" ) end , opt )
92
92
end
@@ -96,11 +96,11 @@ local function config(opts)
96
96
if opts .backtick then
97
97
local b = opts .backtick
98
98
99
- local opt = { noremap = true , silent = true , desc = " in backticks" }
99
+ local opt = { silent = true , desc = " in backticks" }
100
100
vim .keymap .set (" v" , " i" .. b , function () in_backticks (false ) end , opt )
101
101
vim .keymap .set (" o" , " i" .. b , function () quick .normal (" x" , " vi" .. b ) end , opt )
102
102
103
- opt = { noremap = true , silent = true , desc = " around backticks" }
103
+ opt = { silent = true , desc = " around backticks" }
104
104
vim .keymap .set (" v" , " a" .. b , function () in_backticks (true ) end , opt )
105
105
vim .keymap .set (" o" , " a" .. b , function () quick .normal (" x" , " va" .. b ) end , opt )
106
106
end -- }}}
0 commit comments