I've written the following in my custom folder, and I've run :PackerSync
followed by :Copilot setup
, but I get an error: E492: Not an editor command: Copilot setup
.
Do I need to clone github/copilot somewhere or does Packer do it automatically? How do I configure it on NvChad?
custom/chadrc.lua
local plugin_conf = require "custom.plugins.configs"
M.plugins = {
user = userPlugins,
override = {
["hrsh7th/nvim-cmp"] = plugin_conf.cmp,
},
}
custom/plugins.lua
return {
["github/copilot.vim"] = {
config = function()
vim.cmd [[
let g:copilot_no_tab_map = v:true
]]
end,
},
["hrsh7th/cmp-copilot"] = {
after = "nvim-cmp",
},
}