-
I installed the plugin manually. Here's the relevant piece of my local copilot_chat = require("CopilotChat")
copilot_chat.setup({
debug = false,
show_help = "yes",
disable_extra_info = 'no',
build = function()
vim.notify("Please update the remote plugins by running ':UpdateRemotePlugins', then restart Neovim.")
end,
event = "VeryLazy",
})
-- Setup keymap
vim.keymap.set("n", "<leader>ccb", "<cmd>CopilotChatBuffer<cr>", { noremap = true })
vim.keymap.set("n", "<leader>cce", "<cmd>CopilotChatExplain<cr>", { noremap = true })
vim.keymap.set("n", "<leader>cct", "<cmd>CopilotChatTests<cr>", { noremap = true })
vim.keymap.set("x", "<leader>ccv", ":CopilotChatVisual<cr>", { noremap = true })
vim.keymap.set("x", "<leader>ccx", ":CopilotChatInPlace<cr>", { noremap = true }) Everything seems fine when I run
I manually inspected the manifest file, and it looks just like the example.
I've been spinning on this for a couple hours now, and I still have no leads. I've tried
Something very strange seems to be going on. Any advice on what to try next would be appreciated! Version info:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Could you please try with a stable version? Your Neovim is a bit out of date. |
Beta Was this translation helpful? Give feedback.
-
I also tried everything above on neovim 0.10.0 from the Neovim Unstable Debian PPA, and it works the same there. The version from my post is from the "stable" version. I could try other neovim versions for sure, but the fact that I saw the same error in both seems to point to a version-independent cause. What version of neovim would you recommend? I'm also new to neovim (longtime vim user trying it out), so happy to take setup advice. |
Beta Was this translation helpful? Give feedback.
-
Hmm this almost looks like path issue, e.g neovim cannot find the plugin:
are other plugins working for you? |
Beta Was this translation helpful? Give feedback.
-
Absolutely. The copilotchat in canary readme is just example, I personally use |
Beta Was this translation helpful? Give feedback.
There is lua and rplugin directory, both required. The manual section in main branch definitely missing info for it tho but you can just copy the CopilotChat directory to ~/.config/nvim/lua/CopilotChat and it should work.
For canary, the API for it at least should be stable now and no more breaking changes are planned for it outside of bugfixes, but I am using it for a bit now and havent had any issues rly.