add copilot

pull/62/head
aceaiaid 2024-04-17 13:23:12 -07:00
parent 7be6acf9da
commit 67095a7ceb
2 changed files with 47 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{
"extras": [
"lazyvim.plugins.extras.coding.copilot",
"lazyvim.plugins.extras.lang.docker",
"lazyvim.plugins.extras.lang.go",
"lazyvim.plugins.extras.lang.java",

View File

@ -0,0 +1,46 @@
return {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
build = ":Copilot auth",
opts = {
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 75,
keymap = {
accept = "<M-l>",
accept_word = false,
accept_line = false,
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
},
panel = {
enabled = true,
auto_refresh = true,
keymap = {
jump_prev = false, -- "[["
jump_next = false, -- "]]"
accept = false, -- "<CR>",
refresh = false, -- "gr",
open = false, -- "<M-CR>",
},
layout = {
position = "bottom",
ratio = 0.4,
},
},
filetypes = {
markdown = true,
help = true,
yaml = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
},
}