Olical / aniseed

Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
https://discord.gg/wXAMr8F
The Unlicense
610 stars 28 forks source link

Add `:Fnlfile` #111

Closed bandithedoge closed 2 years ago

bandithedoge commented 2 years ago

hotpot.nvim has a :Fnlfile command that works just like the built-in :luafile. This is very useful when hacking on a config that needs to be reloaded frequently.

Olical commented 2 years ago

So Conjure has :ConjureEvalFile which does this and it'd be easy to implement a similar thing for Aniseed, although I worry about feature creeping eval mechanics when Conjure is designed to solve all of those dynamic issues 🤔

Like where do you print the output? How is it formatted? Just plain text echo? Conjure solves all of this nicely so I'm hesitant but not completely opposed. Maybe a barebones eval that just echos the result (even if that's not very easy to read / useful most of the time) just to give you a tool.

Olical commented 2 years ago

Let me know what you think! I've pushed :AniseedEval and AniseedEvalFile to the develop branch. You can see docs on them with :h AniseedEval etc but they should be self explanatory.

bandithedoge commented 2 years ago

This looks like exactly what I meant

Olical commented 2 years ago

Cool! I'll let that sit in develop for a bit and release / tag it on master soon.