My nvim configuration
refactor(claude): remove context stuff visually in chat window
1 file changed, +1 -8
+1-8claude-nvim/lua/claude/ui.lua
| @@ -342,15 +342,8 @@ function M.prompt_visual_chat() | ||
| 342 | 342 | vim.notify("claude: empty selection", vim.log.levels.WARN) |
| 343 | 343 | return |
| 344 | 344 | 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]" | |
| 349 | 345 | 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) | |
| 354 | 347 | |
| 355 | 348 | if not M.is_open() then |
| 356 | 349 | if panel.sid then |