From 10a082c9d90789b64ec5d3bb9b5f7b80a72fae1c Mon Sep 17 00:00:00 2001 From: Georgi Kirilov <> Date: Sun, 22 Nov 2020 15:10:50 +0200 Subject: Configurable exceptions for autopairs --- pairs.lua | 2 ++ 1 file changed, 2 insertions(+) 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 = {} } -- cgit