From 8fe45de542f802fb5f2a15dcbee0defeafaf5815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 12 Oct 2025 17:21:36 +0800 Subject: [PATCH 1/2] vanadium: +nh --- nix/configurations/vanadium/home/programs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index 73ff75d5..597e550a 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -75,6 +75,7 @@ pkgs.niv pkgs.npins pkgs.nix-tree + pkgs.nh # productivity / media pkgs.evolution From 8137ac9b282094631e032646a9134cffa03721d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 13 Oct 2025 12:00:37 +0800 Subject: [PATCH 2/2] nvim/autopair: add ruler to haskell like rules --- .config/nvim/plugin/autopairs.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/nvim/plugin/autopairs.lua b/.config/nvim/plugin/autopairs.lua index c34e4250..4cba59b3 100644 --- a/.config/nvim/plugin/autopairs.lua +++ b/.config/nvim/plugin/autopairs.lua @@ -5,7 +5,7 @@ local cmp = require("cmp") local cmp_autopairs = require("nvim-autopairs.completion.cmp") local langs = { - haskell_like = { "haskell", "nix" }, + haskell_like = { "haskell", "nix", "ruler" }, ml_like = { "ocaml", "why3", "skel", "isabelle" }, html_like = { "html", "htmldjango" }, latex_like = { "typst", "latex" }, @@ -81,10 +81,10 @@ npairs.add_rules { } pair_with_insertion("$", " ", "$", langs.latex_like) -pair_with_insertion("{", "-", "}", "haskell") -pair_with_insertion("{-", " ", "-}", "haskell") -- block comment -pair_with_insertion("{-", "#", "-}", "haskell") -- language flags -pair_with_insertion("{-#", " ", "#-}", "haskell") +pair_with_insertion("{", "-", "}", langs.haskell_like) +pair_with_insertion("{-", " ", "-}", langs.haskell_like) -- block comment +pair_with_insertion("{-", "#", "-}", langs.haskell_like) -- language flags +pair_with_insertion("{-#", " ", "#-}", langs.haskell_like) pair_with_insertion("(", " ", ")", langs.haskell_like) npairs.add_rules {