refactor: QQdock keymaps via setup() config, reasonix session per project
This commit is contained in:
parent
4b63cf2194
commit
1f4388fe17
|
|
@ -13,21 +13,23 @@ return {
|
|||
url = 'https://git.qyhhh.top/newbie/QQdock.nvim.git',
|
||||
dependencies = { 'akinsho/toggleterm.nvim' },
|
||||
config = function()
|
||||
local Q = require('QQdock')
|
||||
pcall(Q.setup, Q, {
|
||||
require('QQdock').setup({
|
||||
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()
|
||||
keymaps = {
|
||||
shell = { 'n', '<c-t>' },
|
||||
shell_i = { 'i', '<c-t>' },
|
||||
reasonix = { 'n', '<C-i>' },
|
||||
lazygit = { 'n', '<leader>gg' },
|
||||
},
|
||||
commands = {
|
||||
reasonix = function()
|
||||
local cwd = vim.fn.getcwd()
|
||||
Q.open('env XDG_STATE_HOME=' .. cwd .. '/.reasonix-state reasonix chat --continue')
|
||||
end, { noremap = true } },
|
||||
{ 'n', '<leader>gg', function() Q.open('lazygit') end, { noremap = true } },
|
||||
return 'env XDG_STATE_HOME=' .. cwd .. '/.reasonix-state reasonix chat --continue'
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue