From e2bafcfc9e1522844941d585b6bd901d9b1c6230 Mon Sep 17 00:00:00 2001 From: tinger Date: Sun, 2 Aug 2026 10:53:51 +0200 Subject: [PATCH] common: dev: Fix `less` for UTF-8 private use sequences --- common/dev/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/dev/default.nix b/common/dev/default.nix index 1776996..24f4eb2 100644 --- a/common/dev/default.nix +++ b/common/dev/default.nix @@ -11,9 +11,15 @@ ./virt.nix ]; - # Always use `-FRX`, some Nix shenanigans break the escape sequences otherwise. + # Always use `-FRX`, some Nix shenanigans break the escape sequences + # otherwise. programs.less.envVariables.LESS = "-FRX"; + # Ensure unassigned sequences are printed too, these are used for nerd fonts. + # https://stackoverflow.com/questions/72541931/less-is-not-displaying-what-it-considers-as-unassigned-utf8-unicode-characters + programs.less.envVariables.LESSCHARSET = "utf-8"; + programs.less.envVariables.LESSUTFBINFMT = "*n%C"; + environment.systemPackages = with pkgs; [ harper # Grammar and spell checking language server mdbook # Building documentation locally -- 2.51.2