Skip to content

Commit c2a0dd0

Browse files
authored
feat: add gitcommit ft to triple backtick rules (#530)
1 parent de03fa5 commit c2a0dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-autopairs/rules/basic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ local function setup(opt)
4141
local bracket = bracket_creator(opt)
4242
local rules = {
4343
Rule("<!--", "-->", { "html", "markdown" }):with_cr(cond.none()),
44-
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto", "typst" })
44+
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto", "typst", "gitcommit" })
4545
:with_pair(cond.not_before_char('`', 3)),
4646
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto", "typst" }):only_cr():use_regex(true),
4747
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala", "sbt", "toml" }):with_pair(cond.not_before_char('"', 3)),

0 commit comments

Comments
 (0)