mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2026-05-24 18:48:12 +02:00
19 lines
395 B
Nix
19 lines
395 B
Nix
|
|
{
|
||
|
|
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})
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
}
|