fix(nvim): make copilot work
This commit is contained in:
parent
15de473108
commit
7bcdc05c90
9
nvimrc
9
nvimrc
|
@ -646,9 +646,10 @@ packadd! copilot.lua " https://github.com/zbirenbaum/copilot.lua.git
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
vim.defer_fn(function()
|
vim.defer_fn(function()
|
||||||
require('copilot').setup({
|
require('copilot').setup({
|
||||||
panel = {
|
panel = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
auto_refresh = true,
|
||||||
|
},
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
|
@ -689,8 +690,8 @@ lua <<EOF
|
||||||
['<CR>'] = cmp.mapping.confirm({ select = true, behaviour = cmp.ConfirmBehavior.Replace }),
|
['<CR>'] = cmp.mapping.confirm({ select = true, behaviour = cmp.ConfirmBehavior.Replace }),
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'copilot', keyword_length = 0 },
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'copilot' },
|
|
||||||
{
|
{
|
||||||
name = 'buffer',
|
name = 'buffer',
|
||||||
option = {
|
option = {
|
||||||
|
|
Loading…
Reference in New Issue