From 0f2bc8d969bed0c512d9411b5574aa2c938ec049 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 2 Jan 2025 16:58:31 +0100 Subject: [PATCH] set fzf theme in dark/light mode --- dot_config/fish/private_functions/dark.fish | 12 +++++++++--- dot_config/fish/private_functions/light.fish | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/dot_config/fish/private_functions/dark.fish b/dot_config/fish/private_functions/dark.fish index 9c0074f..2974f51 100644 --- a/dot_config/fish/private_functions/dark.fish +++ b/dot_config/fish/private_functions/dark.fish @@ -1,5 +1,11 @@ function dark --description 'Set shell theme to dark mode, including neovim' -yes | fish_config theme save "Catppuccin Mocha" -set -Ux BAT_THEME "Catppuccin Mocha" -update_nvim_theme dark + yes | fish_config theme save "Catppuccin Mocha" + set -Ux BAT_THEME "Catppuccin Mocha" + set -Ux FZF_DEFAULT_OPTS "\ +--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ +--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ +--color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 \ +--color=selected-bg:#45475a \ +--multi" + update_nvim_theme dark end diff --git a/dot_config/fish/private_functions/light.fish b/dot_config/fish/private_functions/light.fish index 23f8895..a193791 100644 --- a/dot_config/fish/private_functions/light.fish +++ b/dot_config/fish/private_functions/light.fish @@ -1,5 +1,11 @@ function light --description 'Set shell theme to light mode, including neovim' -yes | fish_config theme save "Catppuccin Latte" -set -Ux BAT_THEME "Catppuccin Latte" -update_nvim_theme light + yes | fish_config theme save "Catppuccin Latte" + set -Ux BAT_THEME "Catppuccin Latte" + set -Ux FZF_DEFAULT_OPTS "\ +--color=bg+:#ccd0da,bg:#eff1f5,spinner:#dc8a78,hl:#d20f39 \ +--color=fg:#4c4f69,header:#d20f39,info:#8839ef,pointer:#dc8a78 \ +--color=marker:#7287fd,fg+:#4c4f69,prompt:#8839ef,hl+:#d20f39 \ +--color=selected-bg:#bcc0cc \ +--multi" + update_nvim_theme light end