diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-29 20:19:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-29 20:19:06 +0200 |
| commit | 0555bbbaf8c5e4def35d25e9879117f51c8d7ca7 (patch) | |
| tree | 005c85f7f39a8a738f04c86a9e288a69f355cb9d /config/fish | |
| parent | 830abc9e63a5e9bb4a67976040d6a35456fe5d46 (diff) | |
Diffstat (limited to 'config/fish')
| -rw-r--r-- | config/fish/config.fish | 21 | ||||
| -rw-r--r-- | config/fish/delta.toml | 4 |
2 files changed, 24 insertions, 1 deletions
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 <C-o> +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 |
