1
0
forked from aniani/vim

patch 8.2.0858: not easy to require Lua modules

Problem:    Not easy to require Lua modules.
Solution:   Improve use of Lua path. (Prabir Shrestha, closes #6098)
This commit is contained in:
Bram Moolenaar
2020-05-31 14:08:12 +02:00
parent 5cd1cb9ff9
commit 788fbb4707
8 changed files with 121 additions and 9 deletions

View File

@@ -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