utillity/coverage: add crazy coverage

This commit is contained in:
Snoweuph 2026-03-21 05:41:26 +01:00
commit 67f9a96abf
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
6 changed files with 67 additions and 12 deletions

View file

@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.utility.crazy-coverage;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["crazy-coverage"];
vim.pluginRC.crazy-coverage = entryAnywhere ''
require("crazy-coverage").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,11 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.utility.crazy-coverage = {
enable = mkEnableOption "coverage for neovim";
setupOpts =
mkPluginSetupOption "crazy-coverage.nvim" {};
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./crazy-coverage.nix
./config.nix
];
}

View file

@ -30,5 +30,6 @@
./yanky-nvim
./yazi-nvim
./undotree
./crazy-coverage
];
}