I’ve started moving Lua into the ftplugin directory and it’s working well. I have one ftplugin that defines a Lua function that I intend on binding to a normal mode mapping. In a previous life I had done this:
nnoremap('gb', [[:lua require('ftplugin.go').build_files()<CR>]])
However, now I’m not sure how to build this require path, or if its even possible. Any suggestions here?