blob: 3f2f1d7ee29a98fc6ec9f3e02b015058eb5db7ae (
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.biomejs;
in {
options.vim.diagnostics.presets.biomejs = {
enable = mkDiagnosticsPresetEnableOption {
option = "biomejs";
display = "Biome";
};
};
config = mkIf cfg.enable {
vim.diagnostics.nvim-lint.linters.biomejs.cmd = getExe pkgs.biome;
};
}
|