fix: pcall QQdock.setup for backward compat with old clone
This commit is contained in:
parent
a210f5e43f
commit
ba27352d7b
|
|
@ -13,13 +13,13 @@ return {
|
|||
url = 'https://git.qyhhh.top/newbie/QQdock.nvim.git',
|
||||
dependencies = { 'akinsho/toggleterm.nvim' },
|
||||
config = function()
|
||||
require('QQdock').setup({
|
||||
local Q = require('QQdock')
|
||||
pcall(Q.setup, Q, {
|
||||
size = {
|
||||
horizontal = 10, -- 竖屏下方终端高度
|
||||
vertical = 40, -- 横屏右侧终端宽度
|
||||
horizontal = 10,
|
||||
vertical = 40,
|
||||
},
|
||||
})
|
||||
local Q = require('QQdock')
|
||||
G.map({
|
||||
{ 'n', '<c-t>', Q.shell, { noremap = true } },
|
||||
{ 'i', '<c-t>', Q.shell, { noremap = true } },
|
||||
|
|
|
|||
Loading…
Reference in New Issue