nix-home/packages/common/nki-kakoune/utils.nix

8 lines
291 B
Nix
Raw Normal View History

2024-10-07 14:31:33 +00:00
{ lib, writeTextDir, ... }: {
mkFacesScript = name: faces: writeTextDir "share/kak/autoload/${name}/faces.kak" ''
hook global KakBegin .* {
${lib.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: face: " face global ${name} \"${face}\"") faces))}
}
'';
2024-10-07 12:30:47 +00:00
}