lucc / nvimpager

Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting
Other
382 stars 20 forks source link

Handle LESSSECURE environment variable like less #48

Closed lucc closed 3 years ago

lucc commented 3 years ago

less uses a LESSSECURE env variable to run in a restricted mode (see less(1)). Neovim provides 'secure' but that might not be enough.

lucc commented 3 years ago

There was a restricted mode in neovim (with command line option -Z) but it was removed in 0.5 so this looks unreasonable to persue.

References: https://github.com/neovim/neovim/issues/11972 https://github.com/neovim/neovim/pull/11996