mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-06 02:49:33 +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})
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue