mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/typst-vim: use typstPackage
This commit is contained in:
parent
dfea178590
commit
6bf63e8871
2 changed files with 14 additions and 3 deletions
|
@ -10,9 +10,6 @@ helpers.vim-plugin.mkVimPlugin {
|
||||||
originalName = "typst.vim";
|
originalName = "typst.vim";
|
||||||
globalPrefix = "typst_";
|
globalPrefix = "typst_";
|
||||||
|
|
||||||
# Add the typst compiler to nixvim packages
|
|
||||||
extraPackages = [ pkgs.typst ];
|
|
||||||
|
|
||||||
maintainers = [ maintainers.GaetanLepage ];
|
maintainers = [ maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-02-20: remove 2024-04-20
|
# TODO introduced 2024-02-20: remove 2024-04-20
|
||||||
|
@ -25,6 +22,11 @@ helpers.vim-plugin.mkVimPlugin {
|
||||||
];
|
];
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
# Add the typst compiler to nixvim packages
|
||||||
|
typstPackage = lib.mkPackageOption pkgs "typst" {
|
||||||
|
nullable = true;
|
||||||
|
};
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
silent = mkOption {
|
silent = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -37,6 +39,8 @@ helpers.vim-plugin.mkVimPlugin {
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
|
extraPackages = [ cfg.typstPackage ];
|
||||||
|
|
||||||
keymaps =
|
keymaps =
|
||||||
with cfg.keymaps;
|
with cfg.keymaps;
|
||||||
helpers.keymaps.mkKeymaps
|
helpers.keymaps.mkKeymaps
|
||||||
|
|
|
@ -20,4 +20,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.typst-vim = {
|
||||||
|
enable = true;
|
||||||
|
typstPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue