1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-09 02:21:07 +01:00
nixvim/plugins/by-name/zig/default.nix
2025-12-07 22:46:34 +00:00

20 lines
514 B
Nix

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