Skip to content

Commit 2c7372f

Browse files
committed
fix(operators): do not append "operator" in operator mapping description
Details: - This makes description more concise, which is better for 'mini.clue' clues (less width and more precise clue group description).
1 parent 686569d commit 2c7372f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/mini/operators.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ MiniOperators.make_mappings = function(operator_name, lhs_tbl)
547547
-- Make mappings
548548
local operator_desc = operator_name:sub(1, 1):upper() .. operator_name:sub(2)
549549

550-
local expr_opts = { expr = true, replace_keycodes = false, desc = operator_desc .. ' operator' }
550+
local expr_opts = { expr = true, replace_keycodes = false, desc = operator_desc }
551551
H.map('n', lhs_tbl.textobject, string.format('v:lua.MiniOperators.%s()', operator_name), expr_opts)
552552

553553
local rhs = lhs_tbl.textobject .. '_'

0 commit comments

Comments
 (0)