set fzf theme in dark/light mode

This commit is contained in:
Gabriel Augendre 2025-01-02 16:58:31 +01:00
parent 9fac1ba346
commit 0f2bc8d969
2 changed files with 18 additions and 6 deletions

View file

@ -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"
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

View file

@ -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"
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