Closed gwerbin closed 2 years ago
@gwerbin yes, you can with special form *module-name*
.
Quote from aniseed
doc:
(comment
*module* ;; => {...} the current Lua module table.
*module-name* ;; => "my-module"
*file* ;; => "relative/path/to/source/file/my-module.fnl"
)
I see that there is an
aniseed/module
entry in the table created by themodule
macro. Is this value accessible from inside the module?For example:
In this case, I would expect
foo.bar.print-module-name
to printfoo.bar
.My use case is to facilitate scripting Vim: