sysinit.vim
works like a charm, but I want to fully transit into lua.
How file should be called? sysinit.lua
doesn't work.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityThis is not supported, but you can execute lua code inside vimscript.
lua << EOF
-- your lua code
EOF
For system wide init in lua you could have a init.lua
in {dir}/nvim/init.lua
where {dir}
is any directory in $XDG_CONFIG_DIRS
.
More information with: :help config
$XDG_CONFIG_DIRS
is typically $HOME/.config/
. So it's not a system wide config file location.