Olical / nfnl

Enhance your Neovim with Fennel
The Unlicense
235 stars 8 forks source link

Disable compile on save #45

Closed atweiden closed 4 days ago

atweiden commented 2 weeks ago

I habitually write Fennel buffers to disk despite them being in a syntactically invalid state. I’d prefer running :NfnlCompileAllFiles on demand to compile my Fennel files.

In the previous discussion at https://github.com/Olical/nfnl/issues/17, you’d mentioned implementing this in .nfnl.fnl or as an option passed to setup. Either approach would be greatly appreciated.

Olical commented 1 week ago

Ah yes, I should add this. I think as a personal option in setup since it's a workflow related change, not project related. .nfnl.fnl is for shared project settings many people might interact with by design whereas .setup() will be behaviour / UX related. Taking a look now.

Olical commented 1 week ago

Took me far too long to get this right and also deleted my work once because of a git snafu before I committed it. But there you go! There's an option you can set via g:nfnl#compile_on_write and a new command that compiles the current file only. I hope that helps out your workflow!

atweiden commented 4 days ago

Thank you.