diff --git a/home/modules/editor.nix b/home/modules/editor.nix index 80fc949..82bd8c5 100644 --- a/home/modules/editor.nix +++ b/home/modules/editor.nix @@ -1,5 +1,8 @@ -{ pkgs, config, ... }: +{ pkgs, lib, config, ... }: +let + neovim = config.programs.neovim.enable; +in { home.packages = with pkgs; [ # lsp @@ -44,7 +47,7 @@ defaultEditor = true; }; - home.sessionVariables = { + home.sessionVariables = lib.mkIf neovim { MANPAGER = "nvim +Man!"; };