mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
24 lines
502 B
Nix
24 lines
502 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.commentary;
|
|
in
|
|
{
|
|
# TODO Add support for aditional filetypes. This requires autocommands!
|
|
|
|
options = {
|
|
plugins.commentary = {
|
|
enable = mkEnableOption "commentary";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.vimPlugins.vim-commentary;
|
|
description = "Plugin to use for vim-commentary";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [ cfg.package ];
|
|
};
|
|
}
|