nix-community.nixvim/plugins/by-name/plantuml-syntax/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

45 lines
1,009 B
Nix

{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkVimPlugin {
name = "plantuml-syntax";
globalPrefix = "plantuml_";
description = "Syntax highlighting for PlantUML files.";
maintainers = [ lib.maintainers.GaetanLepage ];
# TODO introduced 2024-03-02: remove 2024-05-02
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"setMakeprg"
"executableScript"
];
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "plantuml-syntax";
packageName = "plantuml";
})
];
dependencies = [ "plantuml" ];
settingsOptions = {
set_makeprg = defaultNullOpts.mkFlagInt 1 ''
Set the makeprg to `plantuml`.
'';
executable_script = defaultNullOpts.mkStr "plantuml" ''
Set the script to be called with makeprg, default to `plantuml` in `$PATH`.
'';
};
settingsExample = {
set_makeprg = true;
executable_script = "plantuml";
};
}