neovim: Support Lua for plugin configuration#2723
neovim: Support Lua for plugin configuration#2723cdunster wants to merge 2 commits intonix-community:masterfrom
Conversation
Add support for using lua for plugin configuration by adding a lua block around the config in the generated init.vim file.
|
first of all thanks for contributing, adding a test etc . I intend to merge #2716 as soon as my comment is adressed then we could look at generating an init.lua by default and converting these to lua. NB: even though lua plugins are nice, I suspect many less vocal) neovim users still use an init.vim (I do, well I have an hybrid setup), some operations are still easier in viml IMO. |
No worries, I was actually planning on doing something similar as a next step but where each plugin configured with Lua had a separate file in the
Nice, just happy to have Lua supported so I can use my existing config.
You're right but I think more and more people are moving to Lua and it's great for new people so adding support now makes sense. |
Description
This is to support the use of Lua as a language for plugin configuration in neovim.
Lua plugins are becoming the norm in neovim so it is useful to be able to configure them with Lua.
This should be expanded on later to add better support for Lua but this is a good first step.
P.S. I am very new to Nix and home-manager so any feedback is welcome, but please be kind 😁
Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.(bash module tests not passing, I think this is an error on master though)
Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
(not new but no current maintainer)
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.