From f30f5c74da5243cf9f3abd2848d2fdaae385b45d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 5 Jun 2025 21:53:30 +0300 Subject: jo --- dotfiles/fish/conf.d/ai.fish | 12 +++++++++++- dotfiles/fish/conf.d/editor.fish | 3 --- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish index f11a642..f1d11fc 100644 --- a/dotfiles/fish/conf.d/ai.fish +++ b/dotfiles/fish/conf.d/ai.fish @@ -4,11 +4,21 @@ abbr -a suggest 'gh copilot suggest' abbr -a explain 'gh copilot explain' abbr -a aic 'aichat -e' +# helix-gpt env vars used +set -gx COPILOT_MODEL gpt-4.1 # can be changed with aimodels function +set -gx HANDLER copilot + +# TODO: also reconfigure aichat tool using this function function aimodels + # nvim for the ai tool wrapper so i can use Copilot Chat from the command line. set -l NVIM_DIR "$HOME/.config/nvim/" set -l COPILOT_CHAT_DIR "$NVIM_DIR/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat" - printf "gpt-4o\ngpt-4.1\nclaude-3.7-sonnet\nclaude-3.7-sonnet-thought\n" >~/.aimodels + printf "gpt-4o +gpt-4.1 +claude-3.7-sonnet +claude-3.7-sonnet-thought" >~/.aimodels + set -gx COPILOT_MODEL (cat ~/.aimodels | fzf) if test -d $COPILOT_CHAT_DIR diff --git a/dotfiles/fish/conf.d/editor.fish b/dotfiles/fish/conf.d/editor.fish index 22c0d51..8ce61db 100644 --- a/dotfiles/fish/conf.d/editor.fish +++ b/dotfiles/fish/conf.d/editor.fish @@ -2,9 +2,6 @@ set -gx EDITOR hx set -gx VISUAL $EDITOR set -gx GIT_EDITOR $EDITOR set -gx HELIX_CONFIG_DIR $HOME/.config/helix -# set -gx COPILOT_MODEL gpt-4o -set -gx COPILOT_MODEL gpt-4.1 -set -gx HANDLER copilot function editor::helix::open_with_lock set -l file $argv[1] -- cgit v1.2.3