-
Notifications
You must be signed in to change notification settings - Fork 20
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
Is it possible to use pure lua to refactor this project? #94
Comments
It is possible to do that but you have to reimplement the command line parsing and some other details that bash offers. In my opinion that is more work than it is worth. I assume that most systems already have bash installed for some other reason (so I do not consider it a "big" dependency; on my NixOS system for example the full dependency tree of bash is 34MB and the full dependency tree of neovim is 91MB and also includes bash) Is there any problem with bash as a dependency? |
Not all OSs preinstalled bash. Some BSDs installed other shells like ksh as their shell, Some OSs like win even don't have bash. However, in any situation, neovim's lua is accessible.
It shouldn't be very complex, just parse
Do you mean |
I meant redirection and environment exports which are more involved with vim functions than with bash. If some system does not preinstall bash that is not a problem in my opinion. I suspect most systems do not preinstall neovim either. If a system does not provide bash then you have a point: currently nvimpager is not usable on that system. Although you Windows is not a priority for me and you can certainly install bash on windows here are some other things that you have to check if and how they can be achieved in lua or on windows:
I am not motivated to port the bash script to lua but you can try. |
neovim have a lua interpreter. If this project can use it to reduce dependency of bash, it will be better?
nvimpager
:The text was updated successfully, but these errors were encountered: