From 81faac9e5974fe66e26d4af0372923ff12de0804 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Thu, 9 Jan 2025 11:36:56 +0100 Subject: [PATCH] feat: add quarto filetype to triple backticks rules --- lua/nvim-autopairs/rules/basic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nvim-autopairs/rules/basic.lua b/lua/nvim-autopairs/rules/basic.lua index 91b4c43a..1f0efd6d 100644 --- a/lua/nvim-autopairs/rules/basic.lua +++ b/lua/nvim-autopairs/rules/basic.lua @@ -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" })