diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-31 14:08:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-31 14:08:12 +0200 |
commit | 788fbb47079e6df4d4815d27273faf8390395029 (patch) | |
tree | 4257162a0428962e3aad34a926ff40d08b0d632d /src/testdir/test_lua.vim | |
parent | 5cd1cb9ff9d04979ff4cbc36ca8416d83364505d (diff) | |
download | vim-git-788fbb47079e6df4d4815d27273faf8390395029.tar.gz |
patch 8.2.0858: not easy to require Lua modulesv8.2.0858
Problem: Not easy to require Lua modules.
Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098)
Diffstat (limited to 'src/testdir/test_lua.vim')
-rw-r--r-- | src/testdir/test_lua.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index f92208c20..bd50bce56 100644 --- a/src/testdir/test_lua.vim +++ b/src/testdir/test_lua.vim @@ -536,6 +536,11 @@ func Test_lua_open() %bwipe! endfunc +func Test_update_package_paths() + set runtimepath+=./testluaplugin + call assert_equal("hello from lua", luaeval("require('testluaplugin').hello()")) +endfunc + " Test vim.line() func Test_lua_line() new |