mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 05:14:30 +02:00
plugin/hmts: init + tests (#646)
This commit is contained in:
parent
0a31f39447
commit
0de47ebf77
3 changed files with 34 additions and 0 deletions
|
@ -104,6 +104,7 @@
|
||||||
./utils/goyo.nix
|
./utils/goyo.nix
|
||||||
./utils/hardtime.nix
|
./utils/hardtime.nix
|
||||||
./utils/harpoon.nix
|
./utils/harpoon.nix
|
||||||
|
./utils/hmts.nix
|
||||||
./utils/illuminate.nix
|
./utils/illuminate.nix
|
||||||
./utils/indent-blankline.nix
|
./utils/indent-blankline.nix
|
||||||
./utils/instant.nix
|
./utils/instant.nix
|
||||||
|
|
22
plugins/utils/hmts.nix
Normal file
22
plugins/utils/hmts.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.plugins.hmts;
|
||||||
|
helpers = import ../helpers.nix {inherit lib;};
|
||||||
|
in {
|
||||||
|
options.plugins.hmts =
|
||||||
|
helpers.extraOptionsOptions
|
||||||
|
// {
|
||||||
|
enable = mkEnableOption "hmts.nvim";
|
||||||
|
|
||||||
|
package = helpers.mkPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
extraPlugins = [cfg.package];
|
||||||
|
};
|
||||||
|
}
|
11
tests/test-sources/plugins/utils/hmts.nix
Normal file
11
tests/test-sources/plugins/utils/hmts.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.hmts.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.hmts = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue