mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 15:41:02 +01:00
sheldon: add module
sheldon: some fixes
Revert "sheldon: some fixes"
This reverts commit ea859bc3e3.
sheldon: fix missed variable name
sheldon: add description and example (blank)
sheldon: add shell configs
sheldon: format code
sheldon: add test case
maintainers: add Kyure-A as maintainer
sheldon: add completions option and various fixes
sheldon: fix missed file name
sheldon: fix setting to simple
sheldon: add option to enable completion script
sheldon: change default value of options to enable completions to true
sheldon: fix how commands are combined
sheldon: fix missing prefix
sheldon: change mkIf to be enclosed in parentheses
sheldon: fix expression type
sheldon: add mainrs as maintainer
25 lines
629 B
Nix
25 lines
629 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}";
|
|
}
|