fix(nvim): make copilot work

This commit is contained in:
Rob Watson 2023-09-17 08:17:46 +02:00
parent 15de473108
commit 7bcdc05c90
1 changed files with 5 additions and 4 deletions

9
nvimrc
View File

@ -646,9 +646,10 @@ packadd! copilot.lua " https://github.com/zbirenbaum/copilot.lua.git
lua <<EOF
vim.defer_fn(function()
require('copilot').setup({
panel = {
enabled = false,
},
panel = {
enabled = false,
auto_refresh = true,
},
suggestion = {
enabled = false,
},
@ -689,8 +690,8 @@ lua <<EOF
['<CR>'] = cmp.mapping.confirm({ select = true, behaviour = cmp.ConfirmBehavior.Replace }),
},
sources = cmp.config.sources({
{ name = 'copilot', keyword_length = 0 },
{ name = 'nvim_lsp' },
{ name = 'copilot' },
{
name = 'buffer',
option = {