From 9a7fdc362b478529604448c6fcd2f380942e7524 Mon Sep 17 00:00:00 2001 From: Giorgio Abelli <111286488+gAbelli@users.noreply.github.com> Date: Wed, 8 Jan 2025 08:50:11 +0100 Subject: [PATCH] feat: support triple quotes in Scala (#489) --- lua/nvim-autopairs/rules/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-autopairs/rules/basic.lua b/lua/nvim-autopairs/rules/basic.lua index 3f7dda2f..51fc48e4 100644 --- a/lua/nvim-autopairs/rules/basic.lua +++ b/lua/nvim-autopairs/rules/basic.lua @@ -43,7 +43,7 @@ local function setup(opt) Rule("", { "html", "markdown" }):with_cr(cond.none()), Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }), Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }):only_cr():use_regex(true), - Rule('"""', '"""', { "python", "elixir", "julia", "kotlin" }):with_pair(cond.not_before_char('"', 3)), + 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" }) :with_pair(function(opts)