From ea5103d81eb05fe4338f8c8e70dbc6752352b91c Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Thu, 25 Jun 2026 02:00:12 +0200 Subject: fix(nvim): fix markdown autopairs --- plugin/50-autopairs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/50-autopairs.lua b/plugin/50-autopairs.lua index afa4e3b..aa19967 100644 --- a/plugin/50-autopairs.lua +++ b/plugin/50-autopairs.lua @@ -9,6 +9,6 @@ local npairs = require("nvim-autopairs") local cond = require("nvim-autopairs.conds") npairs.setup() npairs.add_rules({ - Rule("*", "*", "markdown"):with_cr(cond.none()), - Rule("~", "~", "markdown"):with_cr(cond.none()), + Rule("*", "*", "markdown"):with_move(cond.not_before_regex("%*")):with_cr(cond.none()), + Rule("~", "~", "markdown"):with_move(cond.not_before_regex("~")):with_cr(cond.none()), }) -- cgit v1.3.1