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

@@ -0,0 +1,7 @@
local function hello()
return "hello from lua"
end
return {
hello = hello
}

View File

@@ -0,0 +1,5 @@
local hello = require('testluaplugin/hello').hello
return {
hello = hello
}