nix-community.nixvim/plugins/utils/commentary.nix

19 lines
353 B
Nix
Raw Normal View History

2021-02-10 15:17:21 +00:00
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.plugins.commentary;
2021-02-10 15:17:21 +00:00
in
{
# TODO Add support for aditional filetypes. This requires autocommands!
options = {
plugins.commentary = {
2021-02-10 15:17:21 +00:00
enable = mkEnableOption "Enable commentary";
};
};
config = mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.vim-commentary ];
2021-02-10 15:17:21 +00:00
};
}