mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
plugins/commentary: switch to mkVimPlugin
This commit is contained in:
parent
64681ae84c
commit
452c30f747
1 changed files with 7 additions and 20 deletions
|
@ -1,29 +1,16 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
helpers,
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
helpers.vim-plugin.mkVimPlugin {
|
||||||
let
|
name = "commentary";
|
||||||
cfg = config.plugins.commentary;
|
packPathName = "vim-commentary";
|
||||||
in
|
package = "vim-commentary";
|
||||||
{
|
|
||||||
# TODO Add support for additional filetypes. This requires autocommands!
|
# TODO Add support for additional filetypes. This requires autocommands!
|
||||||
|
|
||||||
options = {
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
plugins.commentary = {
|
|
||||||
enable = mkEnableOption "commentary";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "commentary" {
|
# This plugin has no config options
|
||||||
default = [
|
|
||||||
"vimPlugins"
|
|
||||||
"vim-commentary"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue