This commit is contained in:
Barrett Ruth 2025-10-05 16:22:41 -04:00
parent 6d4299ec68
commit 735bb04c95
2 changed files with 2 additions and 2 deletions

View file

@ -29,6 +29,7 @@ jobs:
- 'stylua.toml' - 'stylua.toml'
- 'selene.toml' - 'selene.toml'
python: python:
- 'scripts/**'
- 'scrapers/**' - 'scrapers/**'
- 'tests/scrapers/**' - 'tests/scrapers/**'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -326,14 +326,13 @@ function M.toggle_run_panel(run_opts)
end, { buffer = buf, silent = true }) end, { buffer = buf, silent = true })
vim.keymap.set('n', 't', function() vim.keymap.set('n', 't', function()
local modes = { 'none', 'git', 'vim' } local modes = { 'none', 'git', 'vim' }
local current_idx = nil local current_idx = 1
for i, mode in ipairs(modes) do for i, mode in ipairs(modes) do
if config.ui.run_panel.diff_mode == mode then if config.ui.run_panel.diff_mode == mode then
current_idx = i current_idx = i
break break
end end
end end
current_idx = current_idx or 1
config.ui.run_panel.diff_mode = modes[(current_idx % #modes) + 1] config.ui.run_panel.diff_mode = modes[(current_idx % #modes) + 1]
refresh_run_panel() refresh_run_panel()
end, { buffer = buf, silent = true }) end, { buffer = buf, silent = true })