diff options
-rw-r--r-- | pairs.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 = {} } |