mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 21:04: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
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];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue