mirror of https://github.com/LazyVim/starter
add copilot
parent
7be6acf9da
commit
67095a7ceb
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue