Use less as general pager
I tried nvimpager but it was a bit complex for me to re use existing Neovim settings tweak for specific usage as pager. I decided to stick with less for everything.
This commit is contained in:
parent
8de53581b2
commit
2cd771c838
|
@ -81,13 +81,6 @@
|
||||||
ui = "auto";
|
ui = "auto";
|
||||||
};
|
};
|
||||||
|
|
||||||
pager = {
|
|
||||||
branch = false;
|
|
||||||
show = false;
|
|
||||||
log = toString pkgs.less + "/bin/less";
|
|
||||||
diff = toString pkgs.less + "/bin/less";
|
|
||||||
};
|
|
||||||
|
|
||||||
grep = {
|
grep = {
|
||||||
lineNumber = true;
|
lineNumber = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -182,7 +182,6 @@ in {
|
||||||
# TODO: Check out these plugins as additions / replacements:
|
# TODO: Check out these plugins as additions / replacements:
|
||||||
|
|
||||||
# - https://github.com/glacambre/firenvim Give it another try, integrates neovim into firefox
|
# - https://github.com/glacambre/firenvim Give it another try, integrates neovim into firefox
|
||||||
# - https://github.com/lambdalisue/vim-pager/ (try once I use neovim as pager again)
|
|
||||||
# - https://github.com/sindrets/diffview.nvim/
|
# - https://github.com/sindrets/diffview.nvim/
|
||||||
|
|
||||||
# - https://github.com/weilbith/nvim-code-action-menu/ Check again in future, right now not of much useness on my setup.
|
# - https://github.com/weilbith/nvim-code-action-menu/ Check again in future, right now not of much useness on my setup.
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
LANGUAGE = "en_US";
|
LANGUAGE = "en_US";
|
||||||
|
|
||||||
EDITOR = "nvim";
|
PAGER = "${pkgs.less}/bin/less";
|
||||||
|
EDITOR = "${pkgs.neovim}/bin/nvim";
|
||||||
SHELL = "${pkgs.zsh}/bin/zsh";
|
SHELL = "${pkgs.zsh}/bin/zsh";
|
||||||
|
|
||||||
LESS = "-R -J -W -i -M";
|
LESS = "-R -J -W -i -M";
|
||||||
|
|
Loading…
Reference in a new issue