mirror of https://github.com/Hilbis/Hilbish
feat: add userDir module
parent
56045ed236
commit
e335ef5994
4
api.go
4
api.go
|
@ -81,8 +81,8 @@ func hilbishLoader(mlr *moonlight.Runtime) moonlight.Value {
|
||||||
//util.SetField(rtm, mod, "vimMode", rt.NilValue)
|
//util.SetField(rtm, mod, "vimMode", rt.NilValue)
|
||||||
|
|
||||||
// hilbish.userDir table
|
// hilbish.userDir table
|
||||||
//hshuser := userDirLoader(rtm)
|
hshuser := userDirLoader()
|
||||||
//mod.Set(rt.StringValue("userDir"), rt.TableValue(hshuser))
|
hshMod.SetField("userDir", moonlight.TableValue(hshuser))
|
||||||
|
|
||||||
// hilbish.os table
|
// hilbish.os table
|
||||||
//hshos := hshosLoader(rtm)
|
//hshos := hshosLoader(rtm)
|
||||||
|
|
1
lua.go
1
lua.go
|
@ -53,6 +53,7 @@ func luaInit() {
|
||||||
// Add more paths that Lua can require from
|
// Add more paths that Lua can require from
|
||||||
_, err := l.DoString("package.path = package.path .. " + requirePaths)
|
_, err := l.DoString("package.path = package.path .. " + requirePaths)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Fprintln(os.Stderr, err)
|
||||||
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")
|
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue