diff --git a/home/applications/fish/default.nix b/home/applications/fish/default.nix index 8df0523..de07aed 100644 --- a/home/applications/fish/default.nix +++ b/home/applications/fish/default.nix @@ -3,31 +3,29 @@ programs.fish = { enable = true; - interactiveShellInit = '' - set fish_greeting + interactiveShellInit = + let + tide = pkgs.fishPlugins.tide.src + "/functions/tide/configure"; + in + '' + set fish_greeting - set fish_cursor_default block - set fish_cursor_insert line - set fish_cursor_replace_one underscore - set fish_cursor_replace underscore - set fish_cursor_external line - set fish_cursor_visual block + set fish_cursor_default block + set fish_cursor_insert line + set fish_cursor_replace_one underscore + set fish_cursor_replace underscore + set fish_cursor_external line + set fish_cursor_visual block - function fish_user_key_bindings - fish_default_key_bindings -M insert - fish_vi_key_bindings --no-erase insert - end + function fish_user_key_bindings + fish_default_key_bindings -M insert + fish_vi_key_bindings --no-erase insert + end - tide configure --auto \ - --style=Lean \ - --prompt_colors='16 colors' \ - --show_time=No \ - --lean_prompt_height='Two lines' \ - --prompt_connection=Disconnected \ - --prompt_spacing=Sparse \ - --icons='Few icons' \ - --transient=No - ''; + string replace -r '^' 'set -g ' < ${tide}/icons.fish | source + string replace -r '^' 'set -g ' < ${tide}/configs/lean.fish | source + string replace -r '^' 'set -g ' < ${tide}/configs/lean_16color.fish | source + ''; plugins = lib.map