mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-06 19:05:26 +02:00
comment-nvim: package option
This commit is contained in:
parent
42af61bae8
commit
00d4ca89e0
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,13 @@ in
|
|||
options = {
|
||||
plugins.comment-nvim = {
|
||||
enable = mkEnableOption "Enable comment-nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.comment-nvim;
|
||||
description = "Plugin to use for comment-nvim";
|
||||
};
|
||||
|
||||
padding = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
description = "Add a space b/w comment and the line";
|
||||
|
@ -97,7 +104,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.comment-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
extraConfigLua =
|
||||
''require("Comment").setup${helpers.toLuaObject setupOptions}'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue