2023-06-28 11:12:58 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.hello;
|
2023-11-19 19:37:32 +01:00
|
|
|
highlighters = [ "brackets" "pattern" "cursor" ];
|
2023-06-28 11:12:58 +02:00
|
|
|
styles.comment = "fg=#6c6c6c";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs.zsh = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContains home-files/.zshrc "source ${pkgs.hello}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
2023-11-19 19:37:32 +01:00
|
|
|
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_HIGHLIGHTERS+=('brackets' 'pattern' 'cursor')"
|
2023-07-15 11:49:12 +02:00
|
|
|
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_STYLES+=('comment' 'fg=#6c6c6c')"
|
2023-06-28 11:12:58 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|