plugins/treesitter: move to by-name

This commit is contained in:
Matt Sturgeon 2024-09-04 17:53:24 +01:00
parent 8815180c62
commit 4491ce4db2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
18 changed files with 0 additions and 8 deletions

View file

@ -0,0 +1,33 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
let
cfg = config.plugins.hmts;
in
{
meta.maintainers = [ maintainers.GaetanLepage ];
options.plugins.hmts = {
enable = mkEnableOption "hmts.nvim";
package = lib.mkPackageOption pkgs "hmts.nvim" {
default = [
"vimPlugins"
"hmts-nvim"
];
};
};
config = mkIf cfg.enable {
warnings = optional (!config.plugins.treesitter.enable) [
"Nixvim: hmts needs treesitter to function as intended"
];
extraPlugins = [ cfg.package ];
};
}