blob: c2cf2c5070e7b66c4e9484fd36cf9f00434f53c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.types) mkDiagnosticsPresetEnableOption;
inherit (lib.meta) getExe;
cfg = config.vim.diagnostics.presets.checkmake;
in {
options.vim.diagnostics.presets.checkmake = {
enable = mkDiagnosticsPresetEnableOption {
option = "checkmake";
display = "Checkmake";
};
};
config = mkIf cfg.enable {
vim.diagnostics.nvim-lint.linters.checkmake.cmd = getExe pkgs.checkmake;
};
}
|