dotfiles/run_onchange_after_z_configure_tide.sh.tmpl
Anton Volnuhin 80bb0e07cf migrate treesitter to new API, fix tide script ordering
- Replace removed require('nvim-treesitter.configs').setup with new
  require('nvim-treesitter').setup() + .install() API
- Rename tide configure script so it sorts after the main installer
  (configure_tide → z_configure_tide), fixing fresh installs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 00:46:43 +03:00

22 lines
1.1 KiB
Bash

#!/usr/bin/env bash
# Tide prompt configuration — re-runs when fish_plugins changes
# fish_plugins hash: {{ include "private_dot_config/private_fish/fish_plugins" | sha256sum }}
set -e
if ! command -v fish >/dev/null 2>&1; then
exit 0
fi
if ! fish -c "type -q tide" &>/dev/null; then
exit 0
fi
echo "Configuring tide prompt..."
fish -c "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'" >/dev/null
fish -c "set -U tide_prompt_transient_enabled false"
fish -c "set -U tide_right_prompt_items (string match -v -- node \$tide_right_prompt_items)"
fish -c "set -U tide_right_prompt_items (string match -v -- gcloud \$tide_right_prompt_items)"
fish -c "set -U tide_right_prompt_items (string match -v -- kubectl \$tide_right_prompt_items)"
echo "Tide configured."