-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopilot.vim
45 lines (45 loc) · 843 Bytes
/
copilot.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
lua <<EOF
require("copilot").setup({
panel = {
enabled = true,
auto_refresh = true,
keymap = {
jump_prev = "<C-p>",
jump_next = "<C-n>",
accept = "<CR>",
refresh = "<C-r>",
open = "<C-o>",
},
layout = {
position = "bottom",
ratio = 0.4,
},
},
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 150,
keymap = {
accept = "<Tab>",
accept_word = "<C-w>",
accept_line = "<C-l>",
next = "<C-j>",
prev = "<C-k>",
dismiss = "<C-e>",
},
},
filetypes = {
yaml = false,
markdown = false,
help = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
copilot_node_command = "node",
server_opts_overrides = {},
})
EOF