mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-06 19:05:26 +02:00
vim-commentary: package option
This commit is contained in:
parent
00d4ca89e0
commit
cad521bc6a
1 changed files with 7 additions and 1 deletions
|
@ -9,10 +9,16 @@ in
|
|||
options = {
|
||||
plugins.commentary = {
|
||||
enable = mkEnableOption "Enable commentary";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.vim-commentary;
|
||||
description = "Plugin to use for vim-commentary";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.vim-commentary ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue