3 ms·
Has anyone tried writing their NeoVim config in Lua? Is this a good use case for Fennel?
by asymmetric 2y ago
Has anyone tried writing their NeoVim config in Lua? Is this a good use case for Fennel?
- marcofiset 2y agoThere is a plugin to help you do so: https://github.com/Olical/aniseed https://github.com/Olical/aniseed Didn't try it myself though.
- Agentlien 2y agoI 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.
- adregan 2y agoI 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!”
- adelarsq 2y agoI 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 https://github.com/Olical/nfnl and https://github.com/gpanders/fennel-repl.nvim https://github.com/gpanders/fennel-repl.nvim plugins.
- asymmetric 2y agoEdit: I meant writing it in Fennel
- Graziano_M 2y agoYes, I converted mine. I have a bunch of macros that mapping super easy and ergonomic. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/config.fnl https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...
- Olical 2y agoI've been writing my config and plugins in it for years :) https://github.com/Olical/conjure https://github.com/Olical/conjure https://github.com/Olical/nfnl https://github.com/Olical/nfnl