modules/wrapper: initial healtcheck impl

This commit is contained in:
raf 2025-03-12 04:35:08 +03:00
parent bafa6cbf84
commit 7782c20aba
2 changed files with 19 additions and 0 deletions

View file

@ -53,6 +53,7 @@
wrapper = map (p: ./wrapper + "/${p}") [
"build"
"environment"
"healthcheck"
"rc"
"warnings"
"lazy"

View file

@ -0,0 +1,18 @@
{
pkgs,
lib,
...
}: let
inherit (lib.options) mkEnableOption;
inherit (lib.strings) fileContents;
in {
options.vim.healthcheck = {
enable = mkEnableOption "nvf healthchecks";
};
config = {
vim.additionalRuntimePaths = [
(pkgs.writeTextDir "autoload/health/nvf.lua" (fileContents ./autoload.lua)).outPath
];
};
}