aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/fzf
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-03-12 18:48:40 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-03-12 18:48:40 +0530
commit51d537e03ad877566f00af3c6a1c00340512ac65 (patch)
tree7f8e1c6fccc68ba2ad7c3a2a02fb6efbc36d37d3 /modules/tools/fzf
parentd6ccf7e455bd6947664d4a44dfe578813fa2b4eb (diff)
downloadhome-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.tar.gz
home-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.zip
Using spaces instead of tabs
Diffstat (limited to 'modules/tools/fzf')
-rw-r--r--modules/tools/fzf/default.nix100
1 files changed, 50 insertions, 50 deletions
diff --git a/modules/tools/fzf/default.nix b/modules/tools/fzf/default.nix
index 3d19eca..27350d4 100644
--- a/modules/tools/fzf/default.nix
+++ b/modules/tools/fzf/default.nix
@@ -1,56 +1,56 @@
{ config, lib,... }:
{
- options.tools.fzf = {
- enable = lib.mkEnableOption "Enables fzf.";
- };
-
- config = let
- shellIntegration = ''
+ options.tools.fzf = {
+ enable = lib.mkEnableOption "Enables fzf.";
+ };
+
+ config = let
+ shellIntegration = ''
${if config.tools.zsh.enable then
- "eval \"$(fzf --zsh)\""
+ "eval \"$(fzf --zsh)\""
else "eval \"$(fzf --bash)\""}
- '';
- in lib.mkIf config.tools.fzf.enable {
- programs.fzf = {
- enable = true;
-
- defaultOptions = [
- "--height 100%"
- "--layout=reverse"
- ''--pointer=\" \"''
- ''--header=\" \"''
- ''--prompt=\" \"''
- ''--marker=\"✓ \"''
- "--border=none"
- "--cycle"
- "--no-info"
- "--margin=\"1,2\""
- ];
-
- colors = with config.scheme.withHashtag; {
- fg = base05; # Foreground
- bg = "-1"; # Background (-1 for transparent)
- hl = base0D; # Highlight
-
- "fg+" = base07; # Foreground for selected item
- "bg+" = "-1"; # Background for selected item
- "hl+" = base0D; # Highlight for selected item
-
- gutter = "-1"; # Remove the white margin at the left
-
- info = base0B; # Info text (usually count of items)
- border = base03; # Border color
- prompt = base0A; # Prompt text color
- pointer = base0F; # Pointer color (e.g., > for selected)
- marker = base0C; # Marker color (e.g., for multi-select)
- spinner = base0C; # Spinner color (during search)
- };
- };
-
- programs.zsh.initContent = lib.mkIf config.programs.zsh.enable
- (lib.mkAfter shellIntegration);
- programs.bash.initExtra = lib.mkIf config.programs.bash.enable
- (lib.mkAfter shellIntegration);
- };
+ '';
+ in lib.mkIf config.tools.fzf.enable {
+ programs.fzf = {
+ enable = true;
+
+ defaultOptions = [
+ "--height 100%"
+ "--layout=reverse"
+ ''--pointer=\" \"''
+ ''--header=\" \"''
+ ''--prompt=\" \"''
+ ''--marker=\"✓ \"''
+ "--border=none"
+ "--cycle"
+ "--no-info"
+ "--margin=\"1,2\""
+ ];
+
+ colors = with config.scheme.withHashtag; {
+ fg = base05; # Foreground
+ bg = "-1"; # Background (-1 for transparent)
+ hl = base0D; # Highlight
+
+ "fg+" = base07; # Foreground for selected item
+ "bg+" = "-1"; # Background for selected item
+ "hl+" = base0D; # Highlight for selected item
+
+ gutter = "-1"; # Remove the white margin at the left
+
+ info = base0B; # Info text (usually count of items)
+ border = base03; # Border color
+ prompt = base0A; # Prompt text color
+ pointer = base0F; # Pointer color (e.g., > for selected)
+ marker = base0C; # Marker color (e.g., for multi-select)
+ spinner = base0C; # Spinner color (during search)
+ };
+ };
+
+ programs.zsh.initContent = lib.mkIf config.programs.zsh.enable
+ (lib.mkAfter shellIntegration);
+ programs.bash.initExtra = lib.mkIf config.programs.bash.enable
+ (lib.mkAfter shellIntegration);
+ };
}