mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
add copilot
This commit is contained in:
parent
7be6acf9da
commit
67095a7ceb
2 changed files with 47 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
46
lua/plugins/copilot.lua
Normal file
46
lua/plugins/copilot.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue