Merge pull request #1608 from poseidon-rises/json/prettier
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled

languages/json: add `prettier` and `prettierd`
This commit is contained in:
Snoweuph 2026-05-21 02:16:06 +02:00 committed by GitHub
commit 01d49ca23a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -566,5 +566,7 @@ https://github.com/gorbit99/codewindow.nvim
[PHPStan]: https://github.com/phpstan/phpstan [PHPStan]: https://github.com/phpstan/phpstan
- Add [PHPStan] as a formatter for `vim.languages.php`. - Add [PHPStan] as a formatter for `vim.languages.php`.
- Add `prettier` and `prettierd` as supported formatters to
`vim.languages.json`.
<!-- vim: set textwidth=80: --> <!-- vim: set textwidth=80: -->

View file

@ -25,6 +25,14 @@
command = getExe pkgs.jsonfmt; command = getExe pkgs.jsonfmt;
args = ["-w" "-"]; args = ["-w" "-"];
}; };
prettier = {
command = getExe pkgs.prettier;
};
prettierd = {
command = getExe pkgs.prettierd;
};
}; };
in { in {
options.vim.languages.json = { options.vim.languages.json = {