nvim/lua/plugins/ai.lua
2025-06-27 16:33:00 +08:00

32 lines
620 B
Lua

#! /usr/bin/env lua
--
-- ai.lua
-- Copyright (C) 2025 veypi <i@veypi.com>
--
-- Distributed under terms of the MIT license.
--
return {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
build = ":Copilot auth",
event = "BufReadPost",
opts = {
suggestion = {
enabled = not vim.g.ai_cmp,
auto_trigger = true,
hide_during_completion = vim.g.ai_cmp,
keymap = {
accept = false, -- handled by nvim-cmp / blink.cmp
next = "<M-]>",
prev = "<M-[>",
},
},
panel = { enabled = false },
filetypes = {
markdown = true,
help = true,
},
},
}