mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 11:25:06 +02:00
specs: package option
This commit is contained in:
parent
79f12d9beb
commit
04a4ce7a45
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,12 @@ in
|
|||
options.plugins.specs = {
|
||||
enable = mkEnableOption "Enable specs-nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.specs-nvim;
|
||||
description = "Plugin to use for specs-nvim";
|
||||
};
|
||||
|
||||
show_jumps = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
|
@ -137,7 +143,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.specs-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
highlight.SpecsPopColor.bg = mkIf (!isNull cfg.color) cfg.color;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue