irongit

My nvim configuration

refactor(claude): remove context stuff visually in chat window

huncholanehuncholaneauthored
parent 4c290a0commit 9a3acb0b20b0371782553e3fc2ea18f382d6aad1Browse files

1 file changed, +1 -8

+1-8claude-nvim/lua/claude/ui.lua
@@ -342,15 +342,8 @@ function M.prompt_visual_chat()
342342 vim.notify("claude: empty selection", vim.log.levels.WARN)
343343 return
344344 end
345- local s = vim.fn.getpos("'<")
346- local e = vim.fn.getpos("'>")
347- local fname = vim.api.nvim_buf_get_name(origin_buf)
348- local rel = fname ~= "" and vim.fn.fnamemodify(fname, ":.") or "[No Name]"
349345 local ft = vim.bo[origin_buf].filetype or ""
350- local context = string.format(
351- "<context>\n%s:%d-%d\n```%s\n%s\n```\n</context>",
352- rel, s[2], e[2], ft, sel
353- )
346+ local context = string.format("```%s\n%s\n```", ft, sel)
354347
355348 if not M.is_open() then
356349 if panel.sid then