mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
29 lines
488 B
Nix
29 lines
488 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 = lib.mkPackageOption pkgs "commentary" {
|
|
default = [
|
|
"vimPlugins"
|
|
"vim-commentary"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
|
|
}
|