Copilot
This commit is contained in:
parent
3e4e1785c3
commit
8c3db91e8b
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
-- custom config which piggybacks on the copilot extras in lazy.lua.
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
build = ":Copilot auth",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
panel = {
|
||||
enabled = true,
|
||||
auto_refresh = true,
|
||||
},
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
accept = false, -- disable built-in keymapping
|
||||
keymap = {
|
||||
accept = "<C-Enter>",
|
||||
next = "<C-n>",
|
||||
prev = "<C-p>",
|
||||
-- dismiss = "<ESC>",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -167,6 +167,8 @@ local plugins = {
|
|||
require 'kickstart.plugins.autoformat',
|
||||
|
||||
require 'core.plugins.lsp-file-operations',
|
||||
|
||||
require 'core.plugins.copilot',
|
||||
}
|
||||
|
||||
local pluginOptions = {}
|
||||
|
|
Loading…
Reference in New Issue