1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/by-name/zig/default.nix
saygo-png 29ec33e1a8 plugins: remove deprecations "after 24.11" or less
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-10-18 18:31:00 +00:00

25 lines
530 B
Nix

{
lib,
...
}:
with lib;
with lib.nixvim.plugins;
mkVimPlugin {
name = "zig";
package = "zig-vim";
globalPrefix = "zig_";
description = "Vim plugin for the Zig programming language.";
maintainers = [ maintainers.GaetanLepage ];
settingsOptions = {
fmt_autosave = lib.nixvim.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;
};
}