Mercurial > vim
comparison src/testdir/test_lua.vim @ 20609:054ba681412d v8.2.0858
patch 8.2.0858: not easy to require Lua modules
Commit: https://github.com/vim/vim/commit/788fbb47079e6df4d4815d27273faf8390395029
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 14:08:12 2020 +0200
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 https://github.com/vim/vim/issues/6098)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 14:15:03 +0200 |
parents | 86dde5c4b375 |
children | ae185f35e256 |
comparison
equal
deleted
inserted
replaced
20608:13d49684acf5 | 20609:054ba681412d |
---|---|
532 call assert_equal('XOpen2', luaeval('b.name')) | 532 call assert_equal('XOpen2', luaeval('b.name')) |
533 call assert_equal('XOpen2', bufname('%')) | 533 call assert_equal('XOpen2', bufname('%')) |
534 | 534 |
535 lua b = nil | 535 lua b = nil |
536 %bwipe! | 536 %bwipe! |
537 endfunc | |
538 | |
539 func Test_update_package_paths() | |
540 set runtimepath+=./testluaplugin | |
541 call assert_equal("hello from lua", luaeval("require('testluaplugin').hello()")) | |
537 endfunc | 542 endfunc |
538 | 543 |
539 " Test vim.line() | 544 " Test vim.line() |
540 func Test_lua_line() | 545 func Test_lua_line() |
541 new | 546 new |