mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim/autopair: add ruler to haskell like rules
This commit is contained in:
parent
8fe45de542
commit
8137ac9b28
1 changed files with 5 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ local cmp = require("cmp")
|
||||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||||
|
|
||||||
local langs = {
|
local langs = {
|
||||||
haskell_like = { "haskell", "nix" },
|
haskell_like = { "haskell", "nix", "ruler" },
|
||||||
ml_like = { "ocaml", "why3", "skel", "isabelle" },
|
ml_like = { "ocaml", "why3", "skel", "isabelle" },
|
||||||
html_like = { "html", "htmldjango" },
|
html_like = { "html", "htmldjango" },
|
||||||
latex_like = { "typst", "latex" },
|
latex_like = { "typst", "latex" },
|
||||||
|
|
@ -81,10 +81,10 @@ npairs.add_rules {
|
||||||
}
|
}
|
||||||
pair_with_insertion("$", " ", "$", langs.latex_like)
|
pair_with_insertion("$", " ", "$", langs.latex_like)
|
||||||
|
|
||||||
pair_with_insertion("{", "-", "}", "haskell")
|
pair_with_insertion("{", "-", "}", langs.haskell_like)
|
||||||
pair_with_insertion("{-", " ", "-}", "haskell") -- block comment
|
pair_with_insertion("{-", " ", "-}", langs.haskell_like) -- block comment
|
||||||
pair_with_insertion("{-", "#", "-}", "haskell") -- language flags
|
pair_with_insertion("{-", "#", "-}", langs.haskell_like) -- language flags
|
||||||
pair_with_insertion("{-#", " ", "#-}", "haskell")
|
pair_with_insertion("{-#", " ", "#-}", langs.haskell_like)
|
||||||
pair_with_insertion("(", " ", ")", langs.haskell_like)
|
pair_with_insertion("(", " ", ")", langs.haskell_like)
|
||||||
|
|
||||||
npairs.add_rules {
|
npairs.add_rules {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue