nix-community.nixvim/plugins/by-name/zig/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

36 lines
752 B
Nix

{
lib,
helpers,
...
}:
with lib;
with lib.nixvim.plugins;
mkVimPlugin {
name = "zig";
packPathName = "zig.vim";
package = "zig-vim";
globalPrefix = "zig_";
description = "Vim plugin for the Zig programming language.";
maintainers = [ maintainers.GaetanLepage ];
# TODO introduced 2024-03-02: remove 2024-05-02
deprecateExtraConfig = true;
optionsRenamedToSettings = [
{
old = "formatOnSave";
new = "fmt_autosave";
}
];
settingsOptions = {
fmt_autosave = helpers.defaultNullOpts.mkFlagInt 1 ''
This plugin enables automatic code formatting on save by default using zig fmt.
To disable it, you can set this option to `0`.
'';
};
settingsExample = {
fmt_autosave = 0;
};
}