mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-09 20:35:10 +02:00
undotree: package option
This commit is contained in:
parent
c7c42b168a
commit
8e2ec493a7
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ in
|
||||||
plugins.undotree = {
|
plugins.undotree = {
|
||||||
enable = mkEnableOption "Enable undotree";
|
enable = mkEnableOption "Enable undotree";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.undotree;
|
||||||
|
description = "Plugin to use for undotree";
|
||||||
|
};
|
||||||
|
|
||||||
windowLayout = mkOption {
|
windowLayout = mkOption {
|
||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -108,7 +114,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.undotree ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
undotree_WindowLayout = mkIf (cfg.windowLayout != null) cfg.windowLayout;
|
undotree_WindowLayout = mkIf (cfg.windowLayout != null) cfg.windowLayout;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue