mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
44 lines
916 B
Nix
44 lines
916 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "coverage";
|
|
package = "nvim-coverage";
|
|
|
|
maintainers = [ lib.maintainers.FKouhai ];
|
|
|
|
# TODO: introduced 2025-10-11: remove after 26.05
|
|
inherit (import ./deprecations.nix lib) deprecateExtraOptions optionsRenamedToSettings;
|
|
|
|
settingsExample = {
|
|
auto_reload = true;
|
|
commands = true;
|
|
highlights = {
|
|
covered = {
|
|
fg = "#AA71F00";
|
|
};
|
|
uncovered = {
|
|
fg = "#110000";
|
|
};
|
|
};
|
|
signs = {
|
|
covered = {
|
|
pretty_name = "complete coverage";
|
|
hl = "CoverageCovered";
|
|
text = "<| ";
|
|
};
|
|
uncovered = {
|
|
pretty_name = "no coverage";
|
|
hl = "CoverageUnCovered";
|
|
text = "|> ";
|
|
};
|
|
};
|
|
lang = {
|
|
python = {
|
|
coverage_file = ".coverage";
|
|
coverage_command = "coverage json --fail-under=0 -q -o -";
|
|
};
|
|
};
|
|
};
|
|
}
|