mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add typst
This commit is contained in:
parent
8458a6c6f1
commit
cfb56d1ed3
3 changed files with 11 additions and 11 deletions
|
@ -19,6 +19,7 @@ let
|
|||
example = "pkgs.nodejs_22";
|
||||
};
|
||||
tree-sitter.default = "tree-sitter";
|
||||
typst.default = "typst";
|
||||
ueberzug.default = "ueberzugpp";
|
||||
which.default = "which";
|
||||
};
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
@ -20,13 +19,15 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
"concealMath"
|
||||
"autoCloseToc"
|
||||
];
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "typst-vim";
|
||||
packageName = "typst";
|
||||
})
|
||||
];
|
||||
|
||||
extraOptions = {
|
||||
# Add the typst compiler to nixvim packages
|
||||
typstPackage = lib.mkPackageOption pkgs "typst" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
silent = mkOption {
|
||||
type = types.bool;
|
||||
|
@ -39,7 +40,7 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.typstPackage ];
|
||||
dependencies.typst.enable = lib.mkDefault true;
|
||||
|
||||
keymaps =
|
||||
with cfg.keymaps;
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.typst-vim = {
|
||||
enable = true;
|
||||
typstPackage = null;
|
||||
};
|
||||
plugins.typst-vim.enable = true;
|
||||
dependencies.typst.enable = false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue