plugins/conform: sort packages for formatters
Don't need them sporadically listed, makes it harder to pin down where to find a package in the whole list.
This commit is contained in:
parent
1295ddf004
commit
f368cf7bb3
1 changed files with 21 additions and 26 deletions
|
|
@ -13,30 +13,6 @@ in
|
|||
{
|
||||
inherit states;
|
||||
formatter-packages = {
|
||||
# 2025-12-24: phpPackages.php-codesniffer is broken
|
||||
# https://github.com/NixOS/nixpkgs/pull/459254#issuecomment-3689578764
|
||||
phpcbf = states.broken php84Packages.php-codesniffer;
|
||||
|
||||
swift = states.darwinOnly swift;
|
||||
swiftformat = states.darwinOnly swiftformat;
|
||||
swift_format = states.darwinOnly swift-format;
|
||||
swiftlint = states.darwinOnly swiftlint;
|
||||
|
||||
# 2025-10-12 build failure on Darwin
|
||||
smlfmt = if stdenv.isDarwin then states.broken smlfmt else smlfmt;
|
||||
|
||||
# 2025-11-25 build failure
|
||||
roc = states.broken roc;
|
||||
# 2025-09-13 build failure
|
||||
inko = states.broken inko;
|
||||
# 2025-09-17 build failure
|
||||
gci = states.broken gci;
|
||||
# 2025-10-08 build failure (haskellPackages.hindent)
|
||||
hindent = states.broken haskellPackages.hindent;
|
||||
|
||||
# TODO: 2026-01-23 docstrfmt test failure in nixpkgs
|
||||
docstrfmt = states.broken python313Packages.docstrfmt;
|
||||
|
||||
format-queries = null; # Uses neovim itself
|
||||
init = null; # Internal thingamajig
|
||||
injected = null; # Internal formatter
|
||||
|
|
@ -99,8 +75,8 @@ in
|
|||
biome-check = biome;
|
||||
biome-organize-imports = biome;
|
||||
cabal_fmt = haskellPackages.cabal-fmt;
|
||||
clang_format = clang-tools;
|
||||
clang-format = clang-tools;
|
||||
clang_format = clang-tools;
|
||||
cmake_format = cmake-format;
|
||||
css_beautify = nodePackages.js-beautify;
|
||||
cue_fmt = cue;
|
||||
|
|
@ -108,19 +84,27 @@ in
|
|||
deno_fmt = deno;
|
||||
dioxus = dioxus-cli;
|
||||
inherit (python313Packages) docformatter;
|
||||
# FIXME: 2026-01-23 docstrfmt test failure in nixpkgs
|
||||
docstrfmt = states.broken python313Packages.docstrfmt;
|
||||
elm_format = elmPackages.elm-format;
|
||||
erb_format = rubyPackages.erb-formatter;
|
||||
fish_indent = fishMinimal;
|
||||
forge_fmt = foundry;
|
||||
format-dune-file = dune_3;
|
||||
# FIXME: 2025-09-17 build failure
|
||||
gci = states.broken gci;
|
||||
# TODO: 2026-01-23 gdscript-formatter hash mismatch in nixpkgs
|
||||
gdformat = states.broken gdtoolkit_4;
|
||||
gofmt = go;
|
||||
goimports = gotools;
|
||||
hcl = hclfmt;
|
||||
# FIXME: 2025-10-08 build failure (haskellPackages.hindent)
|
||||
hindent = states.broken haskellPackages.hindent;
|
||||
html_beautify = nodePackages.js-beautify;
|
||||
inherit (rubyPackages) htmlbeautifier;
|
||||
hurlfmt = hurl;
|
||||
# FIXME: 2025-09-13 build failure
|
||||
inko = states.broken inko;
|
||||
js_beautify = nodePackages.js-beautify;
|
||||
jsonnetfmt = jsonnet;
|
||||
inherit (texlive.pkgs) latexindent;
|
||||
|
|
@ -128,8 +112,8 @@ in
|
|||
mago_format = mago;
|
||||
mago_lint = mago;
|
||||
markdownlint = markdownlint-cli;
|
||||
mix = beamMinimal28Packages.elixir;
|
||||
mh_style = python3Packages.miss-hit;
|
||||
mix = beamMinimal28Packages.elixir;
|
||||
nginxfmt = nginx-config-formatter;
|
||||
nimpretty = nim;
|
||||
nixpkgs_fmt = nixpkgs-fmt;
|
||||
|
|
@ -139,6 +123,9 @@ in
|
|||
opa_fmt = if stdenv.isDarwin then states.broken open-policy-agent else open-policy-agent;
|
||||
perltidy = perlPackages.PerlTidy;
|
||||
pg_format = pgformatter;
|
||||
# FIXME: 2025-12-24: phpPackages.php-codesniffer is broken
|
||||
# https://github.com/NixOS/nixpkgs/pull/459254#issuecomment-3689578764
|
||||
phpcbf = states.broken php84Packages.php-codesniffer;
|
||||
php_cs_fixer = php83Packages.php-cs-fixer;
|
||||
inherit (php84Packages) phpinsights;
|
||||
prolog = swi-prolog;
|
||||
|
|
@ -148,14 +135,22 @@ in
|
|||
# TODO: added 2026-02-08 marked unsupported on darwin
|
||||
racketfmt = if stdenv.hostPlatform.isLinux then racket else states.broken racket;
|
||||
inherit (python313Packages) reorder-python-imports;
|
||||
# FIXME: 2025-11-25 build failure
|
||||
roc = states.broken roc;
|
||||
ruff_fix = ruff;
|
||||
ruff_format = ruff;
|
||||
ruff_organize_imports = ruff;
|
||||
# FIXME: 2025-10-12 build failure on Darwin
|
||||
smlfmt = if stdenv.isDarwin then states.broken smlfmt else smlfmt;
|
||||
sql_formatter = sql-formatter;
|
||||
inherit (python313Packages) sqlfmt;
|
||||
squeeze_blanks = coreutils;
|
||||
standardrb = rubyPackages.standard;
|
||||
styler = R;
|
||||
swift = states.darwinOnly swift;
|
||||
swiftformat = states.darwinOnly swiftformat;
|
||||
swift_format = states.darwinOnly swift-format;
|
||||
swiftlint = states.darwinOnly swiftlint;
|
||||
inherit (rubyPackages) syntax_tree;
|
||||
tclfmt = tclint;
|
||||
terraform_fmt = tenv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue