mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
utillity/coverage: add crazy coverage
This commit is contained in:
parent
a3ea20fceb
commit
67f9a96abf
6 changed files with 67 additions and 12 deletions
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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue