mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +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 = {
|
options = {
|
||||||
plugins.comment-nvim = {
|
plugins.comment-nvim = {
|
||||||
enable = mkEnableOption "Enable 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 {
|
padding = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
description = "Add a space b/w comment and the line";
|
description = "Add a space b/w comment and the line";
|
||||||
|
@ -97,7 +104,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.comment-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
extraConfigLua =
|
extraConfigLua =
|
||||||
''require("Comment").setup${helpers.toLuaObject setupOptions}'';
|
''require("Comment").setup${helpers.toLuaObject setupOptions}'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue