Copilot fixes
This commit is contained in:
parent
78857ba736
commit
5482a3771b
@ -335,6 +335,10 @@ return require('packer').startup(function(use)
|
|||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
'zbirenbaum/copilot-cmp',
|
'zbirenbaum/copilot-cmp',
|
||||||
|
requires = {
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
'zbirenbaum/copilot.lua',
|
||||||
|
},
|
||||||
config = function ()
|
config = function ()
|
||||||
require('plugins.copilot-cmp')
|
require('plugins.copilot-cmp')
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require('copilot').setup({
|
require('copilot').setup({
|
||||||
suggestion = { enabled = false },
|
suggestion = { enabled = true },
|
||||||
panel = { enabled = false },
|
panel = { enabled = true },
|
||||||
});
|
});
|
||||||
|
@ -27,7 +27,7 @@ cmp.setup({
|
|||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
['<C-e>'] = cmp.mapping.abort(),
|
['<C-e>'] = cmp.mapping.abort(),
|
||||||
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
['<CR>'] = cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Replace }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() and has_words_before() then
|
if cmp.visible() and has_words_before() then
|
||||||
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
|
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
|
||||||
|
Loading…
Reference in New Issue
Block a user