Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ M.setup = function(options)
-- Loop through merged table and generate commands based on keys.
for key, value in pairs(prompts) do
utils.create_cmd('CopilotChat' .. key, function()
vim.cmd('CopilotChat ' .. value)
vim.cmd('CopilotChatInner ' .. value)
end, { nargs = '*', range = true })
end
end
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/copilot-plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, nvim: pynvim.Nvim):
self.nvim.out_write("Successfully authenticated with Copilot\n")
self.copilot.authenticate()

@pynvim.command("CopilotChat", nargs="1")
@pynvim.command("CopilotChatInner", nargs="1")
def copilotChat(self, args: list[str]):
if self.copilot.github_token is None:
self.nvim.out_write("Please authenticate with Copilot first\n")
Expand Down