home-manager/tests/modules/programs/sheldon/default.nix
2024-07-30 20:19:04 +09:00

28 lines
641 B
Nix

{
config = {
programs.sheldon = {
enable = true;
settings = {
shell = "zsh";
plugins = {
zsh-syntax-highlighting = {
github = "zsh-users/zsh-syntax-highlighting";
apply = [ "defer" ];
};
};
templates = {
defer = ''
{{ hooks | get: "pre" | nl }}{% for file in files %}zsh-defer source "{{ file }}"
{% endfor %}{{ hooks | get: "post" | nl }}'';
};
};
};
};
test.stubs.sheldon = { };
nmt.script = "assertFileContent home-files/.config/sheldon/plugins.toml ${
./plugins.toml
}";
}