diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-25 02:00:12 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-25 02:47:12 +0200 |
| commit | ea5103d81eb05fe4338f8c8e70dbc6752352b91c (patch) | |
| tree | 3970613171781418db77fdc8a6342dfbfdb56401 /plugin | |
| parent | 7bcf47b6349f7077b4b6605952a5f48388f18abe (diff) | |
| download | nvim-config-ea5103d81eb05fe4338f8c8e70dbc6752352b91c.tar.gz nvim-config-ea5103d81eb05fe4338f8c8e70dbc6752352b91c.zip | |
fix(nvim): fix markdown autopairs
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/50-autopairs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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()), }) |
