Skip to content

Commit

Permalink
ci: make sure the test language is set to en_US
Browse files Browse the repository at this point in the history
For systems that have a different language, Neovim will use that
language in the ui. This can cause tests to fail because the output is
no longer the same (translations for messages in the ui are different).
  • Loading branch information
mikavilpas committed Dec 23, 2024
1 parent 7931060 commit 48dbb26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/minimal_init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-- Add current directory to 'runtimepath' to be able to use 'lua' files
vim.cmd([[let &rtp.=','.getcwd()]])

vim.cmd('language en_US')

-- Set up 'mini.test' only when calling headless Neovim (like with `make test`)
if #vim.api.nvim_list_uis() == 0 then
-- Add 'mini.nvim' to 'runtimepath' to be able to use 'mini.test'
Expand Down

0 comments on commit 48dbb26

Please sign in to comment.