modules/terminal-life: use theme variables for fzf

This commit is contained in:
b12f 2024-09-06 17:39:10 +02:00
parent f015e9c6fa
commit ee324d57af
Signed by: b12f
GPG key ID: 729956E1124F8F26
2 changed files with 15 additions and 34 deletions

View file

@ -1,4 +1,4 @@
{ args@{
lib, lib,
config, config,
pkgs, pkgs,
@ -77,44 +77,23 @@ in {
settings = import ./starship.toml.nix flake.self.theme.withHashtag; settings = import ./starship.toml.nix flake.self.theme.withHashtag;
}; };
programs.bash = import ./bash { programs.bash = import ./bash args;
inherit config;
inherit pkgs;
inherit lib;
};
programs.fzf = import ./fzf { programs.fzf = import ./fzf args;
inherit config;
inherit pkgs;
};
programs.neovim = import ./nvim {
inherit config;
inherit pkgs;
inherit lib;
};
programs.neovim = import ./nvim args;
# Ensure nvim backup directory gets created # Ensure nvim backup directory gets created
# Workaround for E510: Can't make backup file (add ! to override) # Workaround for E510: Can't make backup file (add ! to override)
xdg.dataFile."nvim/backup/.keep".text = ""; xdg.dataFile."nvim/backup/.keep".text = "";
xdg.dataFile."nvim/json-schemas/.keep".text = ""; xdg.dataFile."nvim/json-schemas/.keep".text = "";
xdg.dataFile."nvim/templates/.keep".text = ""; xdg.dataFile."nvim/templates/.keep".text = "";
programs.git = import ./git {}; programs.git = import ./git args;
xdg.configFile."git/config".text = import ./.config/git/config.nix { xdg.configFile."git/config".text = import ./.config/git/config.nix args;
inherit config; xdg.configFile."git/gitmessage".text = import ./.config/git/gitmessage.nix args;
inherit pkgs; xdg.configFile."git/global_gitignore".text = import ./.config/git/global_gitignore.nix args;
};
xdg.configFile."git/gitmessage".text = import ./.config/git/gitmessage.nix {
inherit config;
inherit pkgs;
};
xdg.configFile."git/global_gitignore".text = import ./.config/git/global_gitignore.nix {
inherit config;
inherit pkgs;
};
programs.direnv = import ./direnv {}; programs.direnv = import ./direnv args;
}; };
}; };
} }

View file

@ -1,15 +1,17 @@
{ {
config, config,
pkgs, pkgs,
flake,
... ...
}: { }: {
enable = true; enable = true;
defaultCommand = "fd --hidden --type f --exclude .git"; defaultCommand = "fd --hidden --type f --exclude .git";
defaultOptions = [ defaultOptions = with flake.self.theme.withHashtag; [
"--color=bg+:#2d2a2e,bg:#1a181a,spinner:#ef9062,hl:#7accd7" "--color=bg+:${base01},bg:${base00},spinner:${base0C},hl:${base0D}"
"--color=fg:#d3d1d4,header:#7accd7,info:#e5c463,pointer:#ef9062" "--color=fg:${base04},header:${base0D},info:${base0A},pointer:${base0C}"
"--color=marker:#ef9062,fg+:#303030,prompt:#e5c463,hl+:#7accd7" "--color=marker:${base0C},fg+:${base02},prompt:${base0A},hl+:${base0D}"
]; ];
# Use ble.sh for completions, see # Use ble.sh for completions, see
# modules/terminal-life/bash/default.nix -> bleopt complete_menu_style=desc # modules/terminal-life/bash/default.nix -> bleopt complete_menu_style=desc
# and https://github.com/akinomyoga/ble.sh/wiki/Manual-%C2%A77-Completion # and https://github.com/akinomyoga/ble.sh/wiki/Manual-%C2%A77-Completion