dotfiles/private_dot_config/private_fish/functions/tide-reset.fish
Anton Volnuhin 95c88c3ce1 add tide-reset function, fix treesitter config for stable nvim
Extract tide configuration into a reusable fish function (tide-reset)
and call it from the chezmoi onchange script. Also revert treesitter
config to the stable API (nvim-treesitter.configs).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 18:13:21 +03:00

14 lines
878 B
Fish

function tide-reset
if not type -q tide
echo "Tide is not installed"
return 1
end
tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Dark --show_time='24-hour format' --classic_prompt_separators=Slanted --powerline_prompt_heads=Slanted --powerline_prompt_tails=Round --powerline_prompt_style='Two lines, frame' --prompt_connection=Disconnected --powerline_right_prompt_frame=No --prompt_connection_andor_frame_color=Darkest --prompt_spacing=Sparse --icons='Few icons'
set -U tide_prompt_transient_enabled false
set -U tide_right_prompt_items (string match -v -- node $tide_right_prompt_items)
set -U tide_right_prompt_items (string match -v -- gcloud $tide_right_prompt_items)
set -U tide_right_prompt_items (string match -v -- kubectl $tide_right_prompt_items)
echo "Tide configured."
end