Files
dotfiles/nvim/lua/settings/lazy/plugins/copilot.lua
T

54 lines
1.2 KiB
Lua

return {
"zbirenbaum/copilot.lua",
build = "Copilot :auth",
event = "InsertEnter",
config = function()
require("copilot").setup({
panel = {
-- set to true the pannel if not using cmp.
enabled = false,
auto_refresh = true,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<M-CR>",
refresh = "gr",
open = "<M-o>"
},
layout = {
position = "bottom", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
-- set to true the pannel if not using cmp.
enabled = false,
auto_trigger = true,
debounce = 75,
keymap = {
accept = "<M-l>",
accept_word = false,
accept_line = false,
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.js version must be > 18.x
server_opts_overrides = {},
})
end,
}