-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] equivalence of example .vimrc in Lua? #456
Comments
Sorry, I don't use Lua for the config. |
Thank you I've been looking for something like this I am new to vim and porting vimscript to lua has been a challenge. However I get this error when I run neovim :
I probably didn't set up some paths right so it didn't recognise the function. Here is what my
|
@coeusiq local dein_path = "/home/niceiq/.cache/dein/repos/github.com/Shougo/dein.vim" However, this code will not work under another user's config, so I have a portable solution. |
This is not a bug report.
I just want to discuss a bit about using dein in init.lua.
Problems summary
I could not find any instructions from the internet on how to use dein in init.lua.
Though, I found people asking for Lua apis.
I suppose posting my solution on dein's issue might help some people find theirs.
My solution
This is done by calling Vim functions from Lua.
In
lua/dein.lua
: (Edit: simplified. Edit2: Noice:NvimConfigPath
andHomeDir
are global variables defined ininit.lua
, see below. )And call this function in
init.lua
Please critisize 🙏. Otherwise, feel free to use it.
The text was updated successfully, but these errors were encountered: