fix: pcall QQdock.setup for backward compat with old clone

This commit is contained in:
QQ 2026-06-11 20:03:14 +08:00
parent a210f5e43f
commit ba27352d7b
1 changed files with 4 additions and 4 deletions

View File

@ -13,13 +13,13 @@ return {
url = 'https://git.qyhhh.top/newbie/QQdock.nvim.git', url = 'https://git.qyhhh.top/newbie/QQdock.nvim.git',
dependencies = { 'akinsho/toggleterm.nvim' }, dependencies = { 'akinsho/toggleterm.nvim' },
config = function() config = function()
require('QQdock').setup({ local Q = require('QQdock')
pcall(Q.setup, Q, {
size = { size = {
horizontal = 10, -- 竖屏下方终端高度 horizontal = 10,
vertical = 40, -- 横屏右侧终端宽度 vertical = 40,
}, },
}) })
local Q = require('QQdock')
G.map({ G.map({
{ 'n', '<c-t>', Q.shell, { noremap = true } }, { 'n', '<c-t>', Q.shell, { noremap = true } },
{ 'i', '<c-t>', Q.shell, { noremap = true } }, { 'i', '<c-t>', Q.shell, { noremap = true } },