yumevim-nix/config/utils/vimtex.nix

27 lines
521 B
Nix
Executable file

{
config,
lib,
namespace,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
base = "${namespace}.utils.vimtex";
cfg = getAttrByNamespace config base;
in {
options = mkOptionsWithNamespace base {
enable = mkEnableOption "vimtex";
};
config = mkIf cfg.enable {
plugins.vimtex = {
enable = true;
texlivePackage = pkgs.texliveFull;
settings = {
view_method = "zathura";
};
};
};
}