rktjmp/hotpot.nvim

Automatically load `plugin/*.fnl` files

Closed this issue · 1 comments

rktjmp commented

Discussed in #119

Originally posted by iagoleal September 7, 2023
Hello!
It has been quite some time since #44 and with hotpot 0.9 there is now support for automatically loading ftplugin/*.fnl. Thus, it got me wondering if is there any way to also automatically load plugin/*.fnl files.

I tried putting runtime! plugin/**/*.fnl in my config but got an error message

could not find module path for require command (not descendent of a 'fnl' dir?)

Is there any way to circumvent this 'fnl' dir limitation? From what I understood, nvim-moonwalk is inspired by hotpot and supports this. So I imagine there must be some way to also do that from hotpot.

Thanks!

  • Construct test cases
    • Need to actually review docs on plugin/ dir, and after/ dir too maybe
  • Find correct hooks
    • SourceCmd?
  • Add record type (or alter ftplugin, probably basically the same code).