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

25 lines
553 B
Nix
Raw Normal View History

{
lib,
pkgs,
...
} @ attrs: let
helpers = import ../helpers.nix {inherit lib;};
in
with helpers.vim-plugin;
with lib;
mkVimPlugin attrs {
name = "zig";
description = "zig.vim";
package = pkgs.vimPlugins.zig-vim;
globalPrefix = "zig_";
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 = "fmt_autosave";
description = "Run zig fmt on save";
};
};
}