this post was submitted on 05 Nov 2023
16 points (100.0% liked)

Neovim

2197 readers
6 users here now

founded 2 years ago
MODERATORS
 

nlua - neovim as lua interpreter

https://github.com/mfussenegger/nlua

I had previously written about how to create a script that uses neovim and emulates the lua interpreter cli - now I finally got around to extract it into a dedicated project, with some instructions on how to use it with luarocks.

#neovim @neovim

top 8 comments
sorted by: hot top controversial new old
[–] suy 3 points 1 year ago (2 children)

Seems very simple yet very useful. Thanks for sharing this to Lemmy!

How come it requires such a newer neovim, though? I'm still in 0.7, and I've not bothered to upgrade (mostly because the many OSs in which I work on, this tends to be painful).

[–] [email protected] 2 points 1 year ago (1 children)
[–] suy 1 points 1 year ago

Thanks!

Definitely worth it. Kudos for the tool and all your plugins.

[–] [email protected] 1 points 1 year ago

I use asdf-vm with neovim plugin to install.

[–] DaleGribble88 2 points 1 year ago* (last edited 1 year ago) (1 children)

NeoVim is really starting to feel like Emacs with extra steps

[–] kunaltyagi 1 points 1 year ago (1 children)

Evil mode converts emacs into an actually usable editor

[–] DaleGribble88 3 points 1 year ago

I meant more of how Emacs is really an interactive environment for a lisp interpreter. That is where you get all the "Emacs as an operating system" jokes from. NVim seems to be falling down the same rabbit hole of extensions and obscure commands except by way of Lua rather than Lisp.

[–] [email protected] 1 points 1 year ago

Wait if I'm understanding this correctly, this let's you run neovim code with a lua debugger/lets you write tests. That's actually so cool!