News for hackers. Stuff that matters.
Re:The Fennel Programming Language by asymmetric on Monday September 09, 2024 @07:47AM (#41487604)
Has anyone tried writing their NeoVim config in Lua? Is this a good use case for Fennel?
Re:The Fennel Programming Language by marcofiset on Monday September 09, 2024 @08:22AM (#41487841)
There is a plugin to help you do so: https://github.com/Olical/aniseed

Didn't try it myself though.

Re:The Fennel Programming Language by Agentlien on Monday September 09, 2024 @09:27AM (#41488321)
I just finished converting my rather large (just under 500 lines) init.vim to Lua. It took way longer than I had hoped. I feel like I've forgotten the motivation and what benefits it was supposed to bring. At this point I really don't want to consider another conversion, using Fennel or otherwise.
Re:The Fennel Programming Language by adregan on Monday September 09, 2024 @10:25AM (#41488850)
I think about writing the config in fennel all the time, but I’m not a big config tinkerer and already worry about struggling with Lua when I have an upgrade gone awry.

I’ve found the neovim ecosystem to churn way more in recent years than it did when I initially started using it 8 years ago. It really reminds me of the JS ecosystem of the past decade: full featured plugin that works great decides to strip things back so that it’s functionality is all plugable and you suddenly have to wade through 2 major release’s migration docs to get things kind of working like they were before. I digress to point out why it might be hard to have yet another layer to translate through. Though if you don’t have kids, I’d say “go for it!”

Re:The Fennel Programming Language by adelarsq on Monday September 09, 2024 @11:39AM (#41489628)
I have 3500 lines config file in Lua that I have converted from VimScript last year. I see that Lua it's way easier to maintain than VimScript.

Fennel solves some Lua kirks, so I think that is a good use case, since Fennel has some cool features that can help to maintain the code. Right now I am moving the plugins that I maintain to Fennel.

If interested take a look on the https://github.com/Olical/nfnl and https://github.com/gpanders/fennel-repl.nvim plugins.

Re:The Fennel Programming Language by asymmetric on Monday September 09, 2024 @12:09PM (#41489970)
Edit: I meant writing it in Fennel
Re:The Fennel Programming Language by Graziano_M on Monday September 09, 2024 @10:30PM (#41496611)
Yes, I converted mine. I have a bunch of macros that mapping super easy and ergonomic. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...
Re:The Fennel Programming Language by Olical on Tuesday September 10, 2024 @06:08AM (#41499190)
I've been writing my config and plugins in it for years :) https://github.com/Olical/conjure https://github.com/Olical/nfnl