diagnostics/presets: init

This commit is contained in:
Snoweuph 2026-05-11 23:25:02 +02:00
commit 0735ee8cfd
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
49 changed files with 892 additions and 575 deletions

View file

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
inherit (lib.nvim.types) mkDiagnosticsPresetEnableOption;
cfg = config.vim.diagnostics.presets.taplo;
in {
options.vim.diagnostics.presets.taplo = {
enable = mkDiagnosticsPresetEnableOption "taplo" "Taplo";
};
config = mkIf cfg.enable {
vim.diagnostics.nvim-lint.linters.taplo = {
cmd = getExe pkgs.taplo;
args = ["lint"];
};
};
}