home: set neovim as manpager
This commit is contained in:
parent
9b11bf4085
commit
bfedb4a00b
@ -16,18 +16,25 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
nixfiles.programs.comma.enable = true;
|
nixfiles.programs.comma.enable = true;
|
||||||
|
|
||||||
# configure terminfo since we're probably standalone
|
home.sessionVariables = lib.mkMerge [
|
||||||
home.sessionVariables = lib.mkIf (!(osConfig ? environment)) {
|
(lib.mkIf config.programs.neovim.enable {
|
||||||
TERMINFO_DIRS = let
|
MANPAGER = "nvim +Man!";
|
||||||
terminfo-dirs = [
|
})
|
||||||
"${config.home.profileDirectory}/share/terminfo"
|
|
||||||
"/usr/share/terminfo"
|
# configure terminfo since we're probably standalone
|
||||||
];
|
(lib.mkIf (!(osConfig ? environment)) {
|
||||||
in builtins.concatStringsSep ":" terminfo-dirs;
|
TERMINFO_DIRS = let
|
||||||
};
|
terminfo-dirs = [
|
||||||
|
"${config.home.profileDirectory}/share/terminfo"
|
||||||
|
"/usr/share/terminfo"
|
||||||
|
];
|
||||||
|
in builtins.concatStringsSep ":" terminfo-dirs;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
# TODO move this stuff to a zsh.nix or something; this is just a quick fix so home.sessionVariables works
|
# TODO move this stuff to a shell.nix or something; this is just a quick
|
||||||
|
# fix so home.sessionVariables works
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
icat = "kitten icat";
|
icat = "kitten icat";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user