diff --git a/users/modules/config/manpager.nix b/users/modules/config/manpager.nix index 9cf7024..1a77ddb 100644 --- a/users/modules/config/manpager.nix +++ b/users/modules/config/manpager.nix @@ -3,63 +3,65 @@ pkgs, ... }: { - home.sessionVariables.MANPAGER = lib.getExe (pkgs.nixvim.makeNixvim { - package = pkgs.neovim-clean; + 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; - }; + 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"; - ''; + extraConfigLua = '' + vim.opt.shadafile = vim.fn.stdpath "state" .. "/shada/man.shada"; + ''; - keymaps = [ - { - action = ""; - key = ""; - mode = ["n"]; - options = { - silent = true; - desc = "Jump to tag under cursor"; - }; - } - { - action = ":pop"; - key = ""; - mode = ["n"]; - options = { - silent = true; - desc = "Jump to previous tag in stack"; - }; - } - { - action = ":pop"; - key = ""; - mode = ["n"]; - options = { - silent = true; - desc = "Jump to previous tag in stack"; - }; - } - { - action = ":tag"; - key = ""; - mode = ["n"]; - options = { - silent = true; - desc = "Jump to next tag in stack"; - }; - } - ]; - }); + keymaps = [ + { + action = ""; + key = ""; + mode = ["n"]; + options = { + silent = true; + desc = "Jump to tag under cursor"; + }; + } + { + action = ":pop"; + key = ""; + mode = ["n"]; + options = { + silent = true; + desc = "Jump to previous tag in stack"; + }; + } + { + action = ":pop"; + key = ""; + mode = ["n"]; + options = { + silent = true; + desc = "Jump to previous tag in stack"; + }; + } + { + action = ":tag"; + key = ""; + mode = ["n"]; + options = { + silent = true; + desc = "Jump to next tag in stack"; + }; + } + ]; + }); + in "${prg} '+Man!'"; }