Comments (7)
In your script you have the options -p -c
which are both parsed by nvimpager. Nvim options can only be given after --
or after a file argument.
from nvimpager.
If they're parsed by nvimpager why do they need to be after --
?
from nvimpager.
Oh I see, I need to end the arguments parsed by nvimpager
with --
.
from nvimpager.
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" -- "$@"
from nvimpager.
You need nvimpager -p -- -c "lua nvimpager.maps ..."
because you want to use the -c
option of nvim but are actually using the -c option of nvimpager (with a file nameof "lua nvimpager.maps = ..." which probably does not exist).
from nvimpager.
Alright, I've got that. Now what is the correct way to set multiple attributes with Lua?
Error detected while processing command line:
E5107: Error loading lua [string ":lua"]:1: '=' expected near 'nvimpager'
from nvimpager.
You are mixing vim script and lua. You need lua nvimpager.maps = false; nvimpager.git_colors = true
from nvimpager.
Related Issues (20)
- Config option for pager mode always HOT 2
- bad ansi escape sequences parsing? HOT 15
- Strange characters instead of underline HOT 2
- Doesn't work with neovim from snap HOT 5
- Still changing the cursor even after `guicursor` is set to empty string HOT 10
- nvimpager fails when executed without options in a script HOT 5
- Install fails on nixos (`0.11.0`) HOT 2
- nvim nightly/head - command exited with status 2: sed HOT 12
- R help displayed incorrectly HOT 3
- diff file type detected as man HOT 5
- Git diff uses "Identifier" highlight group for "Adding" lines HOT 1
- Is it possible to use pure lua to refactor this project? HOT 3
- display number like bat HOT 1
- How to display the code fence if the markdown? HOT 1
- Unrecognised option in busybox HOT 1
- broken tests on neovim 0.10.0 HOT 3
- Font Ligatures HOT 2
- `cat` mode stopped colorising syntax HOT 8
- Wrapped URLs fail HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvimpager.