2022-12-03 17:21:07 +01:00
|
|
|
local copilot = require("copilot")
|
2022-11-22 09:56:09 +01:00
|
|
|
|
2022-12-03 17:21:07 +01:00
|
|
|
copilot.setup({
|
|
|
|
panel = {
|
|
|
|
enabled = true,
|
|
|
|
auto_refresh = false,
|
|
|
|
keymap = {
|
|
|
|
jump_prev = "[[",
|
|
|
|
jump_next = "]]",
|
|
|
|
accept = "<CR>",
|
|
|
|
refresh = "gr",
|
|
|
|
open = "<M-CR>",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
suggestion = {
|
|
|
|
enabled = true,
|
2022-12-26 15:35:04 +01:00
|
|
|
auto_trigger = true,
|
2022-12-03 17:21:07 +01:00
|
|
|
debounce = 75,
|
|
|
|
keymap = {
|
|
|
|
accept = "<C-j>",
|
|
|
|
next = "<M-]>",
|
|
|
|
prev = "<M-[>",
|
|
|
|
dismiss = "<C-]>",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filetypes = {
|
|
|
|
yaml = false,
|
|
|
|
markdown = false,
|
|
|
|
help = false,
|
|
|
|
gitcommit = false,
|
|
|
|
gitrebase = false,
|
|
|
|
hgcommit = false,
|
|
|
|
svn = false,
|
|
|
|
cvs = false,
|
|
|
|
["."] = false,
|
|
|
|
},
|
|
|
|
copilot_node_command = "node", -- Node version must be < 18
|
|
|
|
server_opts_overrides = {},
|
|
|
|
})
|