Adding major changes with the precision

This commit is contained in:
sharmaharshitnone 2025-06-09 20:12:12 +05:30
parent 87611001cf
commit d00f77555e
8 changed files with 296 additions and 23 deletions

View file

@ -174,8 +174,10 @@ return {
-- Toggle inline chat for quick questions about the current line
vim.keymap.set("n", "<leader>cl", function()
select.line()
chat.toggle()
-- Use chat.ask with a line selector instead of separate select.line() call
chat.ask("What does this line of code do?", {
selection = select.line, -- Pass the function reference, not the function call
})
end, { desc = "Chat About Current Line" })
-- Open Copilot Chat with a custom prompt