Use Lua files to configure Neovim
Using plugins with Neovim tend to have a considerable amount of lua.
You can add your lua config to vimscript in Neovim using:
lua <<EOF require('module') EOF
Use a file to setup your config
Lua looks up files based on a list of paths. Neovim is setup to use
~/.config/nvim/ as your lookup directory. This allows us to use the pattern of lookup that uses
~/.config/nvim/lua/my_config.lua to match for
This means you can have the following setup.
You can then set your config in
print('this is my config')
~/.config/nvim/init.vim require your lua file.
Now you have access to all the lua options, including vim, in lua.