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

8 lines
292 B
Nix
Raw Permalink Normal View History

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