mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/hmts: fix warning
This commit is contained in:
parent
4d8b9aa55f
commit
551fc90797
1 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -24,9 +23,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
warnings = optional (!config.plugins.treesitter.enable) [
|
warnings = optional (
|
||||||
"Nixvim: hmts needs treesitter to function as intended"
|
!config.plugins.treesitter.enable
|
||||||
];
|
) "Nixvim: hmts needs treesitter to function as intended";
|
||||||
|
|
||||||
extraPlugins = [ cfg.package ];
|
extraPlugins = [ cfg.package ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue