diff options
author | Georgi Kirilov <> | 2023-09-29 11:47:37 +0800 |
---|---|---|
committer | Georgi Kirilov <> | 2023-10-10 05:52:28 +0800 |
commit | a5e9d0c6510044f09ccf8288fc3177b2d90d952f (patch) | |
tree | 0a60853f4cfcedb4bcecfc7dc56e3125016f0d2d | |
parent | 4d7c4eaed64bf367fd4979471d341f3e695041ae (diff) | |
download | vis-pairs-a5e9d0c6510044f09ccf8288fc3177b2d90d952f.tar.gz |
style
-rw-r--r-- | init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -314,14 +314,14 @@ local function new(execute, register, prefix, handler, help) local builtin = execute == vis.motion and builtin_motions[prefix] or builtin_textobjects for key, _ in pairs(builtin) do local d = builtin[key] - local simple = type(d[1]) == "string" and type(d[2]) == "string" and d[1]..d[2] - local hlp = (execute == vis.motion and help or "") .. (d.name or (simple or "pattern-delimited") .." block") + local simple = type(d[1]) == "string" and type(d[2]) == "string" and d[1] .. d[2] + local hlp = (execute == vis.motion and help or "") .. (d.name or (simple or "pattern-delimited") .. " block") if execute ~= vis.textobject then - vis:map(vis.modes.NORMAL, prefix..key, bind_builtin(key, execute, id), h(hlp)) + vis:map(vis.modes.NORMAL, prefix .. key, bind_builtin(key, execute, id), h(hlp)) end local variant = prefix == M.prefix.outer and " (outer variant)" or prefix == M.prefix.inner and " (inner variant)" or "" - vis:map(vis.modes.VISUAL, prefix..key, bind_builtin(key, execute, id), h(hlp and hlp .. variant or help)) - vis:map(vis.modes.OPERATOR_PENDING, prefix..key, bind_builtin(key, execute, id), h(hlp and hlp .. variant or help)) + vis:map(vis.modes.VISUAL, prefix .. key, bind_builtin(key, execute, id), h(hlp and hlp .. variant or help)) + vis:map(vis.modes.OPERATOR_PENDING, prefix .. key, bind_builtin(key, execute, id), h(hlp and hlp .. variant or help)) end end return id |