nix-community.nixvim/plugins/utils/commentary.nix
2024-03-07 19:44:13 +01:00

24 lines
431 B
Nix

{
lib,
helpers,
config,
pkgs,
...
}:
with lib; let
cfg = config.plugins.commentary;
in {
# TODO Add support for additional filetypes. This requires autocommands!
options = {
plugins.commentary = {
enable = mkEnableOption "commentary";
package = helpers.mkPackageOption "commentary" pkgs.vimPlugins.vim-commentary;
};
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
};
}