Skip to content

Commit

Permalink
feat: add quarto filetype to triple backticks rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Jan 9, 2025
1 parent d2f791c commit 81faac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/nvim-autopairs/rules/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ local function setup(opt)
local bracket = bracket_creator(opt)
local rules = {
Rule("<!--", "-->", { "html", "markdown" }):with_cr(cond.none()),
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" })
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto" })
:with_pair(cond.not_before_char('`', 3)),
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }):only_cr():use_regex(true),
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto" }):only_cr():use_regex(true),
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala","sbt" }):with_pair(cond.not_before_char('"', 3)),
Rule("'''", "'''", { "python" }):with_pair(cond.not_before_char("'", 3)),
quote("'", "'", { "-rust", "-nix" })
Expand Down

0 comments on commit 81faac9

Please sign in to comment.