52 lines
1.3 KiB
Lua
52 lines
1.3 KiB
Lua
require('copilot').setup({
|
|
panel = {
|
|
enabled = false,
|
|
auto_refresh = false,
|
|
keymap = {
|
|
jump_prev = "[[",
|
|
jump_next = "]]",
|
|
accept = "<CR>",
|
|
refresh = "gr",
|
|
open = "<C-CR>"
|
|
},
|
|
layout = {
|
|
position = "right", -- | top | left | right
|
|
ratio = 0.4
|
|
}
|
|
},
|
|
suggestion = {
|
|
enabled = false,
|
|
auto_trigger = false,
|
|
debounce = 75,
|
|
keymap = {
|
|
accept = "<C-l>",
|
|
-- accept = "<Right>",
|
|
next = "<M-]>",
|
|
prev = "<M-[>",
|
|
dismiss = "<C-]>"
|
|
}
|
|
},
|
|
-- filetypes = {
|
|
-- yaml = false,
|
|
-- markdown = false,
|
|
-- help = false,
|
|
-- gitcommit = false,
|
|
-- gitrebase = false,
|
|
-- hgcommit = false,
|
|
-- svn = false,
|
|
-- cvs = false,
|
|
-- ["."] = false,
|
|
-- },
|
|
copilot_node_command = 'node', -- Node version must be < 18
|
|
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
|
|
server_opts_overrides = {
|
|
trace = "verbose",
|
|
settings = {
|
|
advanced = {
|
|
listCount = 10, -- #completions for panel
|
|
inlineSuggestCount = 4 -- #completions for getCompletions
|
|
}
|
|
}
|
|
}
|
|
})
|