aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2023-12-19 18:20:03 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-12-21 11:06:39 +0100
commit720a3518e3d2eee745bee1d856c92e7c1d84549f (patch)
treeebe20e3d5b6373485e0ccf4eebaee458acaf7266 /test/functional/helpers.lua
parent8533adb4844b771b84dac2141fa2fa60e0487b47 (diff)
downloadrneovim-720a3518e3d2eee745bee1d856c92e7c1d84549f.tar.gz
rneovim-720a3518e3d2eee745bee1d856c92e7c1d84549f.tar.bz2
rneovim-720a3518e3d2eee745bee1d856c92e7c1d84549f.zip
refactor(runtime): rewrite 'vim' color scheme in Lua
Problem: Bundled 'vim' color scheme is written in Vimscript which implicitly assumes that the file is ported from Vim. This is not the case, at it is currently the Neovim's way of providing backward compatibility for color schemes. Solution: Rewrite it in Lua to indicate that this runtime file comes from Neovim.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 449c3ab9d8..2e1f196226 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -41,7 +41,7 @@ module.nvim_argv = {
-- Make screentest work after changing to the new default color scheme
-- Source 'vim' color scheme without side effects
-- TODO: rewrite tests
- '--cmd', 'lua f=io.open("runtime/colors/vim.vim", "r"); l=f:read("*a"); f:close(); vim.api.nvim_exec2(l, {})',
+ '--cmd', 'lua dofile("runtime/colors/vim.lua")',
'--cmd', 'unlet g:colors_name',
'--embed'}