mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 22:28:36 +02:00
Adding major changes with the precision
This commit is contained in:
parent
87611001cf
commit
d00f77555e
8 changed files with 296 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue