File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,47 @@ return {
22 {
33 " zbirenbaum/copilot.lua" ,
44 cmd = " Copilot" ,
5+ build = " :Copilot auth" ,
56 event = " InsertEnter" ,
67 config = function ()
78 require (" copilot" ).setup ({
9+ panel = {
10+ enabled = true ,
11+ auto_refresh = true ,
12+ keymap = {
13+ jump_next = " <c-j>" ,
14+ jump_prev = " <c-k>" ,
15+ accept = " <c-a>" ,
16+ refresh = " r" ,
17+ open = " <M-CR>" ,
18+ },
19+ layout = {
20+ position = " bottom" , -- | top | left | right
21+ ratio = 0.4 ,
22+ },
23+ },
824 suggestion = {
925 enabled = true ,
1026 auto_trigger = true ,
11- hide_during_completion = false ,
12- debounce = 25 ,
27+ debounce = 75 ,
1328 keymap = {
14- accept = false ,
29+ accept = " <c-a> " ,
1530 accept_word = false ,
16- accept_line = " <Tab> " ,
17- next = false ,
18- prev = false ,
19- dismiss = false ,
31+ accept_line = false ,
32+ next = " <c-j> " ,
33+ prev = " <c-k> " ,
34+ dismiss = " <C-e> " ,
2035 },
2136 },
2237 })
2338 end ,
2439 },
40+
41+ -- {
42+ -- "zbirenbaum/copilot-cmp",
43+ -- -- after = { "copilot.lua" },
44+ -- config = function()
45+ -- require("copilot_cmp").setup()
46+ -- end,
47+ -- }
2548}
You can’t perform that action at this time.
0 commit comments