diff --git a/lua/CopilotChat/init.lua b/lua/CopilotChat/init.lua index 763dc81b..5f87f911 100644 --- a/lua/CopilotChat/init.lua +++ b/lua/CopilotChat/init.lua @@ -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 diff --git a/rplugin/python3/copilot-plugin.py b/rplugin/python3/copilot-plugin.py index 170b23fd..048ef97d 100644 --- a/rplugin/python3/copilot-plugin.py +++ b/rplugin/python3/copilot-plugin.py @@ -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")