mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
helpers/mkPlugin: add extraConfig option
This commit is contained in:
parent
563ab0660b
commit
97fb6d6a29
3 changed files with 39 additions and 7 deletions
|
@ -13,6 +13,6 @@ in
|
|||
package = pkgs.vimPlugins.vim-fugitive;
|
||||
extraPackages = [pkgs.git];
|
||||
|
||||
# In typical tpope fashin, this plugin has no config options
|
||||
# In typical tpope fashion, this plugin has no config options
|
||||
options = {};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue