mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-18 00:09:13 +02:00
helpers: add mkPackageOption + refactoring
This commit is contained in:
parent
66b1b099cf
commit
ff2be33445
58 changed files with 94 additions and 258 deletions
|
@ -44,11 +44,7 @@ in
|
|||
{
|
||||
options.plugins.gitsigns = {
|
||||
enable = mkEnableOption "Enable gitsigns plugin";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.gitsigns-nvim;
|
||||
description = "Plugin to use for gitsigns";
|
||||
};
|
||||
package = helpers.mkPackageOption "gitsigns" pkgs.vimPlugins.gitsigns-nvim;
|
||||
signs = {
|
||||
add = signOptions {
|
||||
hl = "GitSignsAdd";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue