Reputation: 624
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
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
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