nvim/lua/plugs/ai.lua

28 lines
701 B
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 这里用来coplit AI的配置
return {
{
-- Copilot 懒加载:只在插入模式需要(和 nvim-cmp 共用 Tab 键cmp 改用 C-n/C-p 避让)
'github/copilot.vim', -- github copilot
event = "InsertEnter",
},
{
-- lazy.nvim
'newbieQQ/slot.nvim',
url = 'https://github.com/newbieQQ/slot.nvim',
config = function()
require('slot').setup({
commands = {
reasonix = 'reasonix',
lazygit = 'lazygit',
},
keymaps = {
shell = { 'n', '<c-t>' },
shell_i = { 'i', '<c-t>' },
reasonix = { 'n', '<C-i>' },
lazygit = { 'n', '<leader>gg' },
},
})
end,
}
}