-
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
When wrapping with Nix to set arguments, always uses cat
mode
#89
Comments
In your script you have the options |
If they're parsed by nvimpager why do they need to be after |
Oh I see, I need to end the arguments parsed by |
Nope, that doesn't work. #! /nix/store/ir0j7zqlw9dc49grmwplppc7gh0s40yf-bash-5.2-p15/bin/bash -e
exec -a "$0" "/nix/store/14qsc1x1i7wwqr6kn2vdxk4wy100dwgi-nvimpager-0.12.0/bin/.nvimpager-wrapped" -p -c "lua nvimpager.maps = false; lua nvimpager.git_colors = true" -- "$@" |
You need |
cat
modecat
mode
Alright, I've got that. Now what is the correct way to set multiple attributes with Lua?
|
You are mixing vim script and lua. You need |
I have the following Nix derivation, which will replace the
nvimpager
command with a wrapper script:This is the content of the script:
When I use the pager for anything from STDIN, it always just prints out the content (syntax highlighted) to my terminal.
The text was updated successfully, but these errors were encountered: