feat: Reasonix sessions isolated per project dir (.reasonix-state)

This commit is contained in:
QQ 2026-06-11 21:12:11 +08:00
parent 36e420f868
commit 4b63cf2194
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ return {
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 } },
{ 'n', '<C-i>', function() Q.open('reasonix chat --continue') end, { noremap = true } }, { 'n', '<C-i>', 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 } }, { 'n', '<leader>gg', function() Q.open('lazygit') end, { noremap = true } },
}) })
end, end,