Markus
Markus

Reputation: 624

configuration script init.lua for neovim instead of init.vim

As Lua is now built-in as of neovim 0.2 (https://github.com/neovim/neovim/wiki/FAQ), can one use a ~/.config/nvim/init.lua configuration file instead of init.vim?

What would an example of init.lua look like?

Because vimscript is driving me crazy.

Upvotes: 6

Views: 4576

Answers (2)

Thomas Bonk
Thomas Bonk

Reputation: 56

Support for init.lua is available now in nightly builds and will be released in Neovim 0.5:

https://github.com/neovim/neovim/issues/7895

Upvotes: 4

Rich Churcher
Rich Churcher

Reputation: 7654

No.

I'm going to go ahead and answer this since the message from core developers seems to have been that VimL will not be replaced for this purpose. See Thiago's comments a few years back on Reddit. To summarise, back then the idea was that Lua would act as a runtime for VimL although that PR eventually stalled due to performance concerns.

So for the time being at least, you can write plugins in Lua but you can't use Lua as the configuration language.

Upvotes: -1

Related Questions