2021-02-10 15:17:21 +00:00
|
|
|
{
|
2023-02-20 11:42:13 +01:00
|
|
|
lib,
|
2023-11-06 15:04:08 +01:00
|
|
|
helpers,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2023-02-20 11:42:13 +01:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.plugins.commentary;
|
|
|
|
in {
|
2021-02-10 15:17:21 +00:00
|
|
|
# TODO Add support for aditional filetypes. This requires autocommands!
|
|
|
|
|
|
|
|
options = {
|
2022-09-18 11:19:23 +01:00
|
|
|
plugins.commentary = {
|
2023-01-22 03:32:08 +00:00
|
|
|
enable = mkEnableOption "commentary";
|
2023-01-19 10:45:15 +00:00
|
|
|
|
2023-01-25 19:46:49 +01:00
|
|
|
package = helpers.mkPackageOption "commentary" pkgs.vimPlugins.vim-commentary;
|
2021-02-10 15:17:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2023-02-20 11:42:13 +01:00
|
|
|
extraPlugins = [cfg.package];
|
2021-02-10 15:17:21 +00:00
|
|
|
};
|
|
|
|
}
|