summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pairs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/pairs.lua b/pairs.lua
index 7ec317c..a1534b3 100644
--- a/pairs.lua
+++ b/pairs.lua
@@ -421,6 +421,7 @@ vis.events.subscribe(vis.events.INIT, function()
or M.map[1] and M.map[1][key]
or builtin_textobjects[key]
if not p then return end
+ if M.no_autopairs[key] and M.no_autopairs[key][win.syntax or ""] then return end
for selection in win:selections_iterator() do
local pos = selection.pos
M.key = key
@@ -445,6 +446,7 @@ M = {
get_range_outer = outer,
prefix = {outer = "a", inner = "i", opening = "[", closing = "]"},
autopairs = true,
+ no_autopairs = {["'"] = {markdown = true, [""] = true}},
unpair = {}
}