Merge pull request #1464 from snoweuph/feat/coverage
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

utillity/coverage: add crazy coverage
This commit is contained in:
Ching Pei Yang 2026-03-23 01:09:08 +01:00 committed by GitHub
commit edfb73fa4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 67 additions and 12 deletions

View file

@ -279,6 +279,9 @@
- Added neovim theme `gruber-darker`
<https://github.com/blazkowolf/gruber-darker.nvim>.
- Added coverage support (`vim.utility.crazy-coverage`) via
[`crazy-coverage.nvim`](https://github.com/mr-u0b0dy/crazy-coverage.nvim).
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
https://github.com/gorbit99/codewindow.nvim

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
];
}

View file

@ -393,6 +393,22 @@
"url": "https://github.com/Saecki/crates.nvim/archive/ac9fa498a9edb96dc3056724ff69d5f40b898453.tar.gz",
"hash": "sha256-jfmST/S9ymwgQ99PTCOlJkk5zaxE5HiDV16TmTISDII="
},
"crazy-coverage": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "mr-u0b0dy",
"repo": "crazy-coverage.nvim"
},
"pre_releases": false,
"version_upper_bound": null,
"release_prefix": null,
"submodules": false,
"version": "v2.1.0",
"revision": "1c9223bdc6f2966be0e5d4dc73c9404003eca5b4",
"url": "https://api.github.com/repos/mr-u0b0dy/crazy-coverage.nvim/tarball/refs/tags/v2.1.0",
"hash": "sha256-D9hbxvjTbpLv2fXwtKbzFiSgkUj3uNd3YowZ/GrEQjM="
},
"csharpls-extended-lsp-nvim": {
"type": "Git",
"repository": {
@ -685,19 +701,6 @@
"url": "https://api.github.com/repos/olexsmir/gopher.nvim/tarball/refs/tags/v0.6.0",
"hash": "sha256-7aDjMFMCiqub/zCDJIWUIX9Zc6+vyPQOczuOFdc/6S0="
},
"grug-far-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "MagicDuck",
"repo": "grug-far.nvim"
},
"branch": "main",
"submodules": false,
"revision": "275dbedc96e61a6b8d1dfb28ba51586ddd233dcf",
"url": "https://github.com/MagicDuck/grug-far.nvim/archive/275dbedc96e61a6b8d1dfb28ba51586ddd233dcf.tar.gz",
"hash": "sha256-qn1BTNCX0Sm158Lv5JfHThqlJX9ualCIlc+RCjWa+t8="
},
"gruber-darker": {
"type": "Git",
"repository": {
@ -711,6 +714,19 @@
"url": "https://github.com/blazkowolf/gruber-darker.nvim/archive/aba065c3a79b58cc3863d5c9db319255abd1258a.tar.gz",
"hash": "sha256-4xB/MRTDccA5gTKe6DrN+bNfDx6fzjuIGOLdkuxg8c0="
},
"grug-far-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "MagicDuck",
"repo": "grug-far.nvim"
},
"branch": "main",
"submodules": false,
"revision": "275dbedc96e61a6b8d1dfb28ba51586ddd233dcf",
"url": "https://github.com/MagicDuck/grug-far.nvim/archive/275dbedc96e61a6b8d1dfb28ba51586ddd233dcf.tar.gz",
"hash": "sha256-qn1BTNCX0Sm158Lv5JfHThqlJX9ualCIlc+RCjWa+t8="
},
"gruvbox": {
"type": "Git",
"repository": {