plugins/hmts: remove with lib;

This commit is contained in:
Austin Horstman 2024-12-11 11:57:53 -06:00
parent 551fc90797
commit ce62cafda3
No known key found for this signature in database

View file

@ -4,15 +4,14 @@
pkgs,
...
}:
with lib;
let
cfg = config.plugins.hmts;
in
{
meta.maintainers = [ maintainers.GaetanLepage ];
meta.maintainers = [ lib.maintainers.GaetanLepage ];
options.plugins.hmts = {
enable = mkEnableOption "hmts.nvim";
enable = lib.mkEnableOption "hmts.nvim";
package = lib.mkPackageOption pkgs "hmts.nvim" {
default = [
@ -22,8 +21,8 @@ in
};
};
config = mkIf cfg.enable {
warnings = optional (
config = lib.mkIf cfg.enable {
warnings = lib.optional (
!config.plugins.treesitter.enable
) "Nixvim: hmts needs treesitter to function as intended";