home: set neovim as manpager

This commit is contained in:
NullBite 2024-04-07 22:31:49 -04:00
parent 9b11bf4085
commit bfedb4a00b
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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";