DEV Community

Cover image for Embed Lua config in your init.vim
Noah Pederson
Noah Pederson

Posted on

Embed Lua config in your init.vim

With the release of Neovim 0.5.0, Lua as a first-class embedded config and plugin language support is now available for general use.

I've started to see Lua plugins pop up more and more, and often their config documentation is also in Lua. This isn't a problem if you're using an init.lua, but what if you're still using init.vim?

Well it turns out embedding Lua config in init.vim is pretty easy, just do the following:

lua << EOS
-- Lua config here
Enter fullscreen mode Exit fullscreen mode

That's it!

If you want to see an example of this, check out my init.vim!

Thanks for reading! If you have any questions or comments, shoot me an email at or Tweet to @chiefnoah13

Discussion (0)