diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
| commit | 23616c2e13f63f0262d64538032b98ce83cc0ec2 (patch) | |
| tree | 3ea56e8c12c6735b5dddb34b5699c59c00066b0f /modules/development/delta/default.nix | |
| parent | 01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (diff) | |
| download | home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.tar.gz home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.zip | |
feat: renamed the options to reflect their changed directory stucture
Renamed the options for the configurations based on the sub-module that
they belong to
Diffstat (limited to 'modules/development/delta/default.nix')
| -rw-r--r-- | modules/development/delta/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/development/delta/default.nix b/modules/development/delta/default.nix index 90e35d4..b39fee7 100644 --- a/modules/development/delta/default.nix +++ b/modules/development/delta/default.nix @@ -5,7 +5,11 @@ }: # Delta - A syntax-highlighting pager for git, diff, and grep output { - config = lib.mkIf config.programs.delta.enable { + options.development.delta = { + enable = lib.mkEnableOption "Enables delta."; + }; + + config = lib.mkIf config.development.delta.enable { programs.delta.options = { line-numbers = true; hunk-header-style = "omit"; @@ -14,13 +18,13 @@ line-numbers-right-format = "{np}│ "; }; - programs.git.settings = lib.mkIf config.programs.git.enable { + programs.git.settings = lib.mkIf config.development.git.enable { core.pager = "delta"; interactive.diffFilter = "delta --color-only"; delta.navigate = true; }; - programs.lazygit.settings = lib.mkIf config.programs.lazygit.enable { + programs.lazygit.settings = lib.mkIf config.development.lazygit.enable { git.pagers = [ { colorArg = "always"; |
