nvim/lua/plugins/copilot.lua

43 lines
1.2 KiB
Lua
Raw Permalink Normal View History

2024-06-17 15:22:39 +07:00
return {
{
"zbirenbaum/copilot.lua",
event = { "InsertEnter" },
opts = {
panel = { enabled = false },
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<M-l>",
accept_word = false,
accept_line = false,
next = "<M-j>",
prev = "<M-k>",
dismiss = "<M-h>",
},
},
filetypes = {
["*"] = true,
},
},
},
{
"zbirenbaum/copilot-cmp",
enabled = false,
},
2024-08-23 07:54:17 +07:00
{
"CopilotC-Nvim/CopilotChat.nvim",
branch = "canary",
event = { "BufReadPost", "BufNewFile" },
dependencies = {
{ "zbirenbaum/copilot.lua" }, -- or github/copilot.vim
{ "nvim-lua/plenary.nvim" }, -- for curl, log wrapper
},
opts = {
2024-08-25 10:33:00 +07:00
debug = false, -- Enable debugging
2024-08-23 07:54:17 +07:00
-- See Configuration section for rest
},
-- See Commands section for default commands if you want to lazy load on them
},
2024-06-17 15:22:39 +07:00
}