GitHub 副驾驶不建议代码,但其已启用且在线
return {
{
"ThePrimeagen/vim-be-good",
},
{
-- github
"zbirenbaum/copilot.lua",
cmd = "Copilot",
build = ":Copilot auth",
opts = {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
markdown = true,
help = true,
},
},
},
{
"mbbill/undotree",
config = function()
vim.keymap.set("n", "<leader>nn", vim.cmd.UndotreeToggle)
end,
},
}
这是配置使用的文件
我想在输入代码时看到 GitHub copilot 的建议。
我可以在您的配置代码中看到建议选项设置为 false
suggestion = { enabled = false }
,这可能是您在输入时看不到来自 GitHub Copilot 的代码建议的原因。
您需要更新配置才能在 Neovim 设置中启用建议。
要使 GitHub Copilot 建议发挥作用,只需像这样修改 opts 表即可;
opts = { suggestion = { enabled = true }, -- Enable suggestions panel = { enabled = false }, filetypes = { markdown = true, help = true, },},