mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
19 lines
462 B
Nix
19 lines
462 B
Nix
|
{ lib, pkgs, ... }@attrs:
|
||
|
let
|
||
|
helpers = import ../helpers.nix { lib = lib; };
|
||
|
in with helpers; with lib;
|
||
|
mkPlugin attrs {
|
||
|
name = "zig";
|
||
|
description = "Enable zig";
|
||
|
extraPlugins = [ pkgs.vimPlugins.zig-vim ];
|
||
|
|
||
|
# 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";
|
||
|
};
|
||
|
};
|
||
|
}
|