Files
neovim-config/lua/taken/plugins/copilot.lua

30 lines
721 B
Lua

--- @type LazyPluginSpec
return {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
dependencies = "AndreM222/copilot-lualine",
config = function()
require("copilot").setup({
panel = {
keymap = {
open = "<M-c>",
},
},
suggestion = {
auto_trigger = true,
keymap = {
accept = "<M-CR>",
},
},
filetypes = {
lua = true,
javascript = true,
python = true,
markdown = true,
json = true,
},
})
end,
}