nix-community.nixvim/plugins/languages/zig.nix

19 lines
453 B
Nix
Raw Normal View History

2021-03-31 13:56:18 +01:00
{ lib, pkgs, ... }@attrs:
let
helpers = import ../helpers.nix { lib = lib; };
in with helpers; with lib;
mkPlugin attrs {
name = "zig";
description = "Enable zig";
2023-01-17 21:54:37 +01:00
package = pkgs.vimPlugins.zig-vim;
2021-03-31 13:56:18 +01:00
# Possibly add option to disable Treesitter highlighting if this is installed
options = {
formatOnSave = mkDefaultOpt {
type = types.bool;
global = "zig_fmt_autosave";
description = "Run zig fmt on save";
};
};
}