Closed steelsojka closed 3 years ago
So macro requires are relative to your CWD of the Lua instance I think, so you might have better luck with (require-macros "fnl.nvim-tree-docs.macros")
. You can also add directories to the fennel path (fennel.path
which has the same format as Lua's path IIRC).
So I think it's a path issue more than anything? See if you can get it to work by using more absolute paths (even if that's not ideal) then we can work out how to make that work nicer if it's beginning to work 🙂
Changing the path to fnl.nvim-tree-docs.macros
worked! I knew it had to be something along those lines. I didn't see anything in the docs for fennel about how those paths were resolved. Thanks again and by the way aniseed has a very pleasant experience. Thanks for all the effort!
This is more of a help request than an issue. I'm using aniseed for a plugin written in fennel. It's for using nvim-treesitter to generate documentation for various languages. I'm using macros (I'm new to them) for the templating language. Anyways, I tried "requireing" or importing the macros, but I don't get any lua output when using the compile script (for the file using the macros). I get an error when trying to evaluate the file locally, saying it couldn't find the macro module.
Here is the branch I'm working with for a more in depth look https://github.com/nvim-treesitter/nvim-tree-docs/tree/rewrite-in-fennel
File using the macros:
fnl/nvim-tree-docs/specs/javascript/jsdoc.fnl
Macro file:
fnl/nvim-tree-docs/macros.fnl