Skip to content

Commit de03fa5

Browse files
authored
feat: add TOML rules (#529)
1 parent d9e44e5 commit de03fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-autopairs/rules/basic.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ local function setup(opt)
4444
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto", "typst" })
4545
:with_pair(cond.not_before_char('`', 3)),
4646
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc", "quarto", "typst" }):only_cr():use_regex(true),
47-
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala","sbt" }):with_pair(cond.not_before_char('"', 3)),
48-
Rule("'''", "'''", { "python" }):with_pair(cond.not_before_char("'", 3)),
47+
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala", "sbt", "toml" }):with_pair(cond.not_before_char('"', 3)),
48+
Rule("'''", "'''", { "python", "toml" }):with_pair(cond.not_before_char("'", 3)),
4949
quote("'", "'", { "-rust", "-nix" })
5050
:with_pair(function(opts)
5151
-- python literals string

0 commit comments

Comments
 (0)