Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

neovim

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.

like image 937
Markus Avatar asked Oct 28 '22 22:10

Markus


1 Answers

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

like image 85
Thomas Bonk Avatar answered Nov 01 '22 01:11

Thomas Bonk