mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/dependencies: add typst
This commit is contained in:
parent
8458a6c6f1
commit
cfb56d1ed3
3 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue