feat(diff): third, regular diff mode

This commit is contained in:
Barrett Ruth 2025-09-21 17:18:22 -04:00
parent 7d51fc2931
commit ff20efca71
6 changed files with 126 additions and 12 deletions

View file

@ -31,10 +31,10 @@
---@class RunPanelConfig
---@field ansi boolean Enable ANSI color parsing and highlighting
---@field diff_mode "vim"|"git" Diff backend to use
---@field diff_mode "none"|"vim"|"git" Diff backend to use
---@field next_test_key string Key to navigate to next test case
---@field prev_test_key string Key to navigate to previous test case
---@field toggle_diff_key string Key to toggle diff mode
---@field toggle_diff_key string Key to cycle through diff modes
---@field max_output_lines number Maximum lines of test output to display
---@class DiffGitConfig
@ -205,9 +205,9 @@ function M.setup(user_config)
diff_mode = {
config.run_panel.diff_mode,
function(value)
return vim.tbl_contains({ 'vim', 'git' }, value)
return vim.tbl_contains({ 'none', 'vim', 'git' }, value)
end,
"diff_mode must be 'vim' or 'git'",
"diff_mode must be 'none', 'vim', or 'git'",
},
next_test_key = {
config.run_panel.next_test_key,