summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-05 21:53:30 +0300
committerPaul Buetow <paul@buetow.org>2025-06-05 21:53:30 +0300
commitf30f5c74da5243cf9f3abd2848d2fdaae385b45d (patch)
tree8d32ac564974a1a43f0ef64bc6b3dbfadb55a43f
parent953bfc13e54a942ff1266fccafb7060c7f2ad0ba (diff)
jo
-rw-r--r--dotfiles/fish/conf.d/ai.fish12
-rw-r--r--dotfiles/fish/conf.d/editor.fish3
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]