You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
658 B
Lua
29 lines
658 B
Lua
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-l>",
|
|
next = "<C-k>",
|
|
prev = "<C-j>",
|
|
dismiss = "<C-h>",
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}
|