commit
a154d85a0d
2 changed files with 2 additions and 2 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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 })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue