This commit is contained in:
QQ 2026-06-17 18:03:03 +08:00
parent 293a5a8689
commit 4eea6fd736
4 changed files with 28 additions and 37 deletions

View File

@ -9,5 +9,5 @@ return {
require('plugs.theme'), require('plugs.theme'),
require('plugs.edit-plugs'), require('plugs.edit-plugs'),
require('plugs.dev'), require('plugs.dev'),
require('plugs.QQdock'), require('plugs.ai'),
} }

View File

@ -1,31 +0,0 @@
-- QQdock.nvim — 持久化自适应终端
-- 远程仓库https://git.qyhhh.top/newbie/QQdock.nvim
-- 本地临时副本lua/QQdock/init.lua根分区只读期间使用
--
-- 恢复读写后操作:
-- 1. 删掉 lua/QQdock/
-- 2. plugs.lua 追加 require('plugs.QQdock')
-- 3. keymap.lua 不用改require('QQdock') 自动找到 lazy 安装的版本)
return {
{
'newbie/QQdock.nvim',
url = 'https://git.qyhhh.top/newbie/QQdock.nvim.git',
dependencies = { 'akinsho/toggleterm.nvim' },
config = function()
local Q = require('QQdock')
pcall(Q.setup, Q, {
size = {
horizontal = 10,
vertical = 40,
},
})
G.map({
{ 'n', '<c-t>', Q.shell, { noremap = true } },
{ 'i', '<c-t>', Q.shell, { noremap = true } },
{ 'n', '<C-i>', function() Q.open('reasonix') end, { noremap = true } },
{ 'n', '<leader>gg', function() Q.open('lazygit') end, { noremap = true } },
})
end,
},
}

27
lua/plugs/ai.lua Normal file
View File

@ -0,0 +1,27 @@
-- 这里用来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,
}
}

View File

@ -27,11 +27,6 @@ return {
-- { -- {
-- 'tpope/vim-commentary', -- 'tpope/vim-commentary',
-- }, -- },
{
-- Copilot 懒加载:只在插入模式需要(和 nvim-cmp 共用 Tab 键cmp 改用 C-n/C-p 避让)
'github/copilot.vim', -- github copilot
event = "InsertEnter",
},
{ {
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',
event = "InsertEnter", event = "InsertEnter",