mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 11:55:17 +02:00
gitgutter: package option
This commit is contained in:
parent
ced09fb2a9
commit
1d2899b79a
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ in
|
|||
plugins.gitgutter = {
|
||||
enable = mkEnableOption "Enable gitgutter";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.gitgutter;
|
||||
description = "Plugin to use for gitgutter";
|
||||
};
|
||||
|
||||
recommendedSettings = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
|
@ -170,7 +176,7 @@ in
|
|||
grepCommand = if builtins.isAttrs cfg.grep then cfg.grep.command else cfg.grep;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.gitgutter ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
options = mkIf cfg.recommendedSettings {
|
||||
updatetime = 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue