irongit

My nvim configuration

feat(claude): use haiku model for find with skip permissions

huncholanehuncholaneauthored
parent 0190a9dcommit ae4ace97c396f752226b6597671830f3934241fcBrowse files

1 file changed, +1 -2

+1-2claude-nvim/lua/claude/find.lua
@@ -75,8 +75,7 @@ function M.find()
7575 .. "Output ONLY a JSON array (no markdown fences, no commentary, no prose) of objects with keys: "
7676 .. 'path (absolute file path string), lnum (1-indexed integer line number), snippet (the matching line content, trimmed of leading/trailing whitespace).\n\n'
7777 .. "Query: " .. query
78- local cmd = { "claude", "-p", prompt }
79- if skip_permissions then table.insert(cmd, "--dangerously-skip-permissions") end
78+ local cmd = { "claude", "-p", "--model", "claude-haiku-4-5", "--dangerously-skip-permissions", prompt }
8079 vim.system(cmd, { text = true }, vim.schedule_wrap(function(out)
8180 if out.code ~= 0 then
8281 vim.notify("claude failed: " .. (out.stderr or ""), vim.log.levels.ERROR)