mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/hmts: remove with lib;
This commit is contained in:
parent
551fc90797
commit
ce62cafda3
1 changed files with 4 additions and 5 deletions
|
@ -4,15 +4,14 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
cfg = config.plugins.hmts;
|
cfg = config.plugins.hmts;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
meta.maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
options.plugins.hmts = {
|
options.plugins.hmts = {
|
||||||
enable = mkEnableOption "hmts.nvim";
|
enable = lib.mkEnableOption "hmts.nvim";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
||||||
default = [
|
default = [
|
||||||
|
@ -22,8 +21,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
warnings = optional (
|
warnings = lib.optional (
|
||||||
!config.plugins.treesitter.enable
|
!config.plugins.treesitter.enable
|
||||||
) "Nixvim: hmts needs treesitter to function as intended";
|
) "Nixvim: hmts needs treesitter to function as intended";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue