mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 00:58:37 +00:00
modules/wrapper: initial healtcheck impl
This commit is contained in:
parent
bafa6cbf84
commit
7782c20aba
2 changed files with 19 additions and 0 deletions
|
@ -53,6 +53,7 @@
|
||||||
wrapper = map (p: ./wrapper + "/${p}") [
|
wrapper = map (p: ./wrapper + "/${p}") [
|
||||||
"build"
|
"build"
|
||||||
"environment"
|
"environment"
|
||||||
|
"healthcheck"
|
||||||
"rc"
|
"rc"
|
||||||
"warnings"
|
"warnings"
|
||||||
"lazy"
|
"lazy"
|
||||||
|
|
18
modules/wrapper/healthcheck/default.nix
Normal file
18
modules/wrapper/healthcheck/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue