From 0555bbbaf8c5e4def35d25e9879117f51c8d7ca7 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 29 Mar 2026 20:19:06 +0200 Subject: feat(config): theme for bat and use delta for git --- config/fish/config.fish | 21 ++++++++++++++++++++- config/fish/delta.toml | 4 ++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 config/fish/delta.toml (limited to 'config/fish') diff --git a/config/fish/config.fish b/config/fish/config.fish index 68be7a8..0556e7a 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -44,6 +44,25 @@ export GPG_TTY=$(tty) # other set -gx EDITOR "nvim" +# fzf + +## open in nvim with +set -x fzf_directory_opts --bind "ctrl-o:execute($EDITOR {} &> /dev/tty)" + +## fix theme +function apply_theme --on-variable fish_terminal_color_theme + switch $fish_terminal_color_theme + case "light" + set -gx BAT_THEME "Catppuccin Latte" + case "dark" + set -gx BAT_THEME "Catppuccin Macchiato" + end +end + +## fix display +set -x fzf_diff_highlighter delta --config "$HOME/.config/fish/delta.toml" + +## custom bindings fzf_configure_bindings --directory=\cf --git_log=\cg --git_status=\cs # yazi @@ -58,5 +77,5 @@ end # alias alias ll "eza -lh --icons=auto --sort=name --group-directories-first" -alias lla "ll -a" +alias lla "eza -lha --icons=auto --sort=name --group-directories-first" alias rg "rg -C 3" diff --git a/config/fish/delta.toml b/config/fish/delta.toml new file mode 100644 index 0000000..d7311f5 --- /dev/null +++ b/config/fish/delta.toml @@ -0,0 +1,4 @@ +[delta] + width = 20 + paging = never + features = diff-so-fancy -- cgit v1.2.3