feat: remove manpager replacement for normal machines to improve evaluation speed

This commit is contained in:
oddlama 2024-04-06 16:11:52 +02:00
parent 94ea46f680
commit 303fbd5595
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 4 additions and 4 deletions

View file

@ -1,67 +0,0 @@
{
lib,
pkgs,
...
}: {
home.sessionVariables.MANPAGER = let
prg = lib.getExe (pkgs.nixvim.makeNixvim {
package = pkgs.neovim-clean;
options = {
buftype = "nowrite";
backup = false;
modeline = false;
shelltemp = false;
swapfile = false;
undofile = false;
writebackup = false;
virtualedit = "all";
splitkeep = "screen";
termguicolors = false;
};
extraConfigLua = ''
vim.opt.shadafile = vim.fn.stdpath "state" .. "/shada/man.shada";
'';
keymaps = [
{
action = "<C-]>";
key = "<CR>";
mode = ["n"];
options = {
silent = true;
desc = "Jump to tag under cursor";
};
}
{
action = ":pop<CR>";
key = "<BS>";
mode = ["n"];
options = {
silent = true;
desc = "Jump to previous tag in stack";
};
}
{
action = ":pop<CR>";
key = "<C-Left>";
mode = ["n"];
options = {
silent = true;
desc = "Jump to previous tag in stack";
};
}
{
action = ":tag<CR>";
key = "<C-Right>";
mode = ["n"];
options = {
silent = true;
desc = "Jump to next tag in stack";
};
}
];
});
in "${prg} '+Man!'";
}

View file

@ -5,7 +5,6 @@
./config/htop.nix
./config/impermanence.nix
./config/manpager.nix
./config/neovim.nix
./config/shell
./config/utils.nix