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