Skip to content

Commit

Permalink
test: use the classic vim colorscheme for nvim nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin authored and lewis6991 committed Dec 10, 2023
1 parent 87640f5 commit 017c924
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/gitsigns_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ describe('gitsigns (with screen)', function()
[10] = { foreground = Screen.colors.Red },
})

-- Make gitisigns available
-- Use the classic vim colorscheme, not the new defaults in nvim >= 0.10
if fn.has('nvim-0.10') > 0 then
command('colorscheme vim')
end

-- Make gitsigns available
exec_lua('package.path = ...', package.path)
config = vim.deepcopy(test_config)
command('cd ' .. system({ 'dirname', os.tmpname() }))
Expand Down

0 comments on commit 017c924

Please sign in to comment.