adopt neovim 0.12 native editing features
This commit is contained in:
parent
fa39d0a36c
commit
282e5e0f0b
18 changed files with 125 additions and 215 deletions
|
|
@ -1,22 +1,23 @@
|
|||
-- GitHub Copilot: AI-powered code completion
|
||||
-- GitHub Copilot inline suggestions, separate from the native completion menu.
|
||||
return {
|
||||
{
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
event = 'InsertEnter', -- Lazy load on first insert mode entry
|
||||
opts = {
|
||||
suggestion = { enabled = false }, -- Disable inline suggestions (use cmp instead)
|
||||
panel = { enabled = false }, -- Disable panel (use cmp instead)
|
||||
filetypes = {
|
||||
['*'] = true, -- Enable for all filetypes
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
event = 'InsertEnter',
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
hide_during_completion = true,
|
||||
keymap = {
|
||||
accept = '<M-l>',
|
||||
next = '<M-]>',
|
||||
prev = '<M-[>',
|
||||
dismiss = '<C-]>',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'zbirenbaum/copilot-cmp',
|
||||
dependencies = { 'zbirenbaum/copilot.lua' },
|
||||
config = function()
|
||||
require('copilot_cmp').setup()
|
||||
end,
|
||||
panel = { enabled = false },
|
||||
filetypes = {
|
||||
['*'] = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue