Compare commits

...

2 commits

Author SHA1 Message Date
8137ac9b28
nvim/autopair: add ruler to haskell like rules 2025-10-13 12:01:51 +08:00
8fe45de542
vanadium: +nh 2025-10-12 17:21:36 +08:00
2 changed files with 6 additions and 5 deletions

View file

@ -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 {

View file

@ -75,6 +75,7 @@
pkgs.niv pkgs.niv
pkgs.npins pkgs.npins
pkgs.nix-tree pkgs.nix-tree
pkgs.nh
# productivity / media # productivity / media
pkgs.evolution pkgs.evolution