summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorgi Kirilov <>2020-11-22 15:10:50 +0200
committerGeorgi Kirilov <>2023-10-04 18:24:59 +0800
commit57165af582159b0ea3c779f8f22e549e98fd3a3c (patch)
treea9acaf6fb59f531153cbd220383178d96403a682
parent49787b8cefc55c0ed6934346701ee4f6956e9fa4 (diff)
downloadvis-pairs-57165af582159b0ea3c779f8f22e549e98fd3a3c.tar.gz
Improve formatting
-rw-r--r--pairs.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/pairs.lua b/pairs.lua
index f45a947..43cfe2c 100644
--- a/pairs.lua
+++ b/pairs.lua
@@ -27,9 +27,11 @@ local aliases = {}
for key, pair in pairs(builtin_textobjects) do aliases[pair[2]] = key ~= pair[2] and pair or nil end
for alias, pair in pairs(aliases) do builtin_textobjects[alias] = pair end
for alias, key in pairs({
- B = "{",
- b = "(",
-}) do builtin_textobjects[alias] = builtin_textobjects[key] end
+ B = "{",
+ b = "(",
+ }) do
+ builtin_textobjects[alias] = builtin_textobjects[key]
+end
local function get_pair(key, win)
return M.map[win.syntax] and M.map[win.syntax][key]