fix test
This commit is contained in:
parent
6d4299ec68
commit
735bb04c95
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'
|
||||
- 'selene.toml'
|
||||
python:
|
||||
- 'scripts/**'
|
||||
- 'scrapers/**'
|
||||
- 'tests/scrapers/**'
|
||||
- 'pyproject.toml'
|
||||
|
|
|
|||
|
|
@ -326,14 +326,13 @@ function M.toggle_run_panel(run_opts)
|
|||
end, { buffer = buf, silent = true })
|
||||
vim.keymap.set('n', 't', function()
|
||||
local modes = { 'none', 'git', 'vim' }
|
||||
local current_idx = nil
|
||||
local current_idx = 1
|
||||
for i, mode in ipairs(modes) do
|
||||
if config.ui.run_panel.diff_mode == mode then
|
||||
current_idx = i
|
||||
break
|
||||
end
|
||||
end
|
||||
current_idx = current_idx or 1
|
||||
config.ui.run_panel.diff_mode = modes[(current_idx % #modes) + 1]
|
||||
refresh_run_panel()
|
||||
end, { buffer = buf, silent = true })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue