mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2026-04-30 22:20:38 +02:00
utillity/coverage: add crazy coverage
This commit is contained in:
parent
5e491e9659
commit
26e11e0ea8
6 changed files with 55 additions and 0 deletions
|
|
@ -266,6 +266,9 @@
|
|||
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
|
||||
you're crazy.
|
||||
|
||||
- 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
|
||||
|
||||
|
|
|
|||
18
modules/plugins/utility/crazy-coverage/config.nix
Normal file
18
modules/plugins/utility/crazy-coverage/config.nix
Normal 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})
|
||||
'';
|
||||
};
|
||||
}
|
||||
11
modules/plugins/utility/crazy-coverage/crazy-coverage.nix
Normal file
11
modules/plugins/utility/crazy-coverage/crazy-coverage.nix
Normal 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" {};
|
||||
};
|
||||
}
|
||||
6
modules/plugins/utility/crazy-coverage/default.nix
Normal file
6
modules/plugins/utility/crazy-coverage/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./crazy-coverage.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -30,5 +30,6 @@
|
|||
./yanky-nvim
|
||||
./yazi-nvim
|
||||
./undotree
|
||||
./crazy-coverage
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.0.0",
|
||||
"revision": "5f50a8e9e60a78cb9b98df47984bbf1c27af6cdf",
|
||||
"url": "https://api.github.com/repos/mr-u0b0dy/crazy-coverage.nvim/tarball/refs/tags/v2.0.0",
|
||||
"hash": "sha256-8f3XC8RqTx1JfEbKyLl2XolOM9U/8suTmZ4owmeRQic="
|
||||
},
|
||||
"csharpls-extended-lsp-nvim": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue