summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorgi Kirilov <>2022-12-03 15:03:33 +0800
committerGeorgi Kirilov <>2023-10-04 18:24:59 +0800
commit6fe7be3267bb124786bed422738d5c76421cfc82 (patch)
tree3c9c70cc7ea496143db2ff86eaf5be32e1fd9dd1
parentadc9eecdb818d92077bb3d4450a9f5656e14111b (diff)
downloadvis-pairs-6fe7be3267bb124786bed422738d5c76421cfc82.tar.gz
disable autopairs in replace mode
until I find a way to fix it
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 009b369..ee3c526 100644
--- a/init.lua
+++ b/init.lua
@@ -422,6 +422,7 @@ vis.events.subscribe(vis.events.INIT, function()
if M.autopairs then
vis.events.subscribe(vis.events.INPUT, function(key)
+ if vis.mode == vis.modes.REPLACE then return end
local win = vis.win
if vis_parkour and vis_parkour(win) then return end
local p = M.map[win.syntax] and M.map[win.syntax][key]