diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-18 00:44:35 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 15:48:13 +0200 |
commit | bba75eb184cee3d96264a392e2083f5b50732214 (patch) | |
tree | 68caa0e34f550ca4da464f6fc7aab6e48c275a95 /test/unit/helpers.lua | |
parent | 2b87485c22e2e42eba54d57454b33dca02f9d67c (diff) | |
download | rneovim-bba75eb184cee3d96264a392e2083f5b50732214.tar.gz rneovim-bba75eb184cee3d96264a392e2083f5b50732214.tar.bz2 rneovim-bba75eb184cee3d96264a392e2083f5b50732214.zip |
lua/stdlib: Introduce vim.shared
This is where "pure functions" can live, which can be shared by Nvim and
test logic which may not have a running Nvim instance available.
If in the future we use Nvim itself as the Lua engine for tests, then
these functions could be moved directly onto the `vim` Lua module.
closes #6580
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index c42eddf7f3..e634b7296e 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -865,7 +865,7 @@ local module = { ptr2key = ptr2key, debug_log = debug_log, } -module = global_helpers.map_extend('error', module, global_helpers) +module = global_helpers.tbl_extend('error', module, global_helpers) return function() return module end |