kickstart.nvim/lua/custom/plugins/copilot.lua

67 lines
1.6 KiB
Lua
Raw Normal View History

2025-01-04 20:21:57 -03:00
return {
{
2025-01-25 13:46:28 -03:00
enabled = false,
2025-01-04 20:21:57 -03:00
"zbirenbaum/copilot.lua",
verylazy = true,
cmd = "Copilot",
build = ":Copilot auth",
config = function()
2025-01-05 00:09:18 -03:00
require("copilot").setup({
2025-01-08 11:46:03 -03:00
panel = {
enabled = true,
auto_refresh = false,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "bottom", -- | top | left | right | horizontal | vertical
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = true,
hide_during_completion = 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 = {},
2025-01-05 00:09:18 -03:00
})
2025-01-04 20:21:57 -03:00
end
},
2025-01-05 00:09:18 -03:00
{
"zbirenbaum/copilot-cmp",
2025-01-08 11:46:03 -03:00
enabled = false,
2025-01-05 00:09:18 -03:00
dependencies = { "zbirenbaum/copilot.lua", "hrsh7th/nvim-cmp" },
config = function()
require("copilot_cmp").setup()
end,
},
2025-01-04 20:21:57 -03:00
{ 'AndreM222/copilot-lualine' },
}