mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
21 lines
465 B
Nix
21 lines
465 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.commentary;
|
|
helpers = import ../helpers.nix { inherit lib; };
|
|
in
|
|
{
|
|
# TODO Add support for aditional 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 ];
|
|
};
|
|
}
|