mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 13:03:03 -04:00
add nvimpager
This commit is contained in:
parent
7aa34369cb
commit
f6ecfdb790
1 changed files with 2 additions and 8 deletions
|
@ -3,14 +3,11 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pager_cmd_var = ''nvim -R +\"nmap q <CMD>q\!<CR>\"'';
|
||||
pager_cmd_alias = ''nvim -R +"nmap q <CMD>q!<CR>"'';
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
neovim
|
||||
nvimpager
|
||||
];
|
||||
file = {
|
||||
nvim = {
|
||||
|
@ -22,10 +19,7 @@ in
|
|||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
MANPAGER = "nvim +Man!";
|
||||
PAGER = pager_cmd_var;
|
||||
};
|
||||
shellAliases = {
|
||||
pager = pager_cmd_alias;
|
||||
PAGER = "nvimpager";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue