helpers/mkPlugin: add extraConfig option

This commit is contained in:
Gaetan Lepage 2024-01-07 11:01:13 +01:00 committed by Gaétan Lepage
parent 563ab0660b
commit 97fb6d6a29
3 changed files with 39 additions and 7 deletions

View file

@ -11,12 +11,13 @@ in
name = "zig";
description = "Enable zig";
package = pkgs.vimPlugins.zig-vim;
globalPrefix = "zig_";
# Possibly add option to disable Treesitter highlighting if this is installed
options = {
formatOnSave = mkDefaultOpt {
type = types.bool;
global = "zig_fmt_autosave";
global = "fmt_autosave";
description = "Run zig fmt on save";
};
};