My nvim configuration
feat(claude): use haiku model for find with skip permissions
1 file changed, +1 -2
+1-2claude-nvim/lua/claude/find.lua
| @@ -75,8 +75,7 @@ function M.find() | ||
| 75 | 75 | .. "Output ONLY a JSON array (no markdown fences, no commentary, no prose) of objects with keys: " |
| 76 | 76 | .. 'path (absolute file path string), lnum (1-indexed integer line number), snippet (the matching line content, trimmed of leading/trailing whitespace).\n\n' |
| 77 | 77 | .. "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 } | |
| 80 | 79 | vim.system(cmd, { text = true }, vim.schedule_wrap(function(out) |
| 81 | 80 | if out.code ~= 0 then |
| 82 | 81 | vim.notify("claude failed: " .. (out.stderr or ""), vim.log.levels.ERROR) |