languages/html: remove null_ls usage

Remove usage of null_ls and replace it with new standards.
This commit is contained in:
Cool-Game-Dev 2025-08-13 19:53:41 -05:00 committed by Poseidon
commit 3aadd2f3ce

View file

@ -39,18 +39,9 @@
defaultDiagnosticsProvider = ["htmlhint"]; defaultDiagnosticsProvider = ["htmlhint"];
diagnosticsProviders = { diagnosticsProviders = {
htmlhint = { htmlhint = {
package = pkgs.htmlhint; config.cmd = getExe pkgs.htmlhint;
nullConfig = pkg: ''
table.insert(
ls_sources,
null_ls.builtins.diagnostics.htmlhint.with({
command = "${pkg}/bin/htmlhint"
})
)
'';
}; };
}; };
in { in {
options.vim.languages.html = { options.vim.languages.html = {
enable = mkEnableOption "HTML language support"; enable = mkEnableOption "HTML language support";
@ -140,7 +131,7 @@ in {
enable = true; enable = true;
linters_by_ft.html = cfg.extraDiagnostics.types; linters_by_ft.html = cfg.extraDiagnostics.types;
linters = mkMerge (map (name: { linters = mkMerge (map (name: {
${name}.cmd = getExe diagnosticsProviders.${name}.package; ${name} = diagnosticsProviders.${name}.config;
}) })
cfg.extraDiagnostics.types); cfg.extraDiagnostics.types);
}; };