aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz775729168 <z775729168@gmail.com>2023-11-10 08:31:26 +0800
committerGitHub <noreply@github.com>2023-11-09 16:31:26 -0800
commitf0780e2231df2e4751e31db32c1545872412ba75 (patch)
treec107fb1652abf3ee0d42443f23e1202312cc35c8
parent66affb4034ee6d77160f0aed99b615fad311ce14 (diff)
feat: add pangu (#188)
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/pangu.lua9
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 64d22c9..57c9995 100644
--- a/README.md
+++ b/README.md
@@ -230,6 +230,7 @@ You can view this list in vim with `:help conform-formatters`
- [nixfmt](https://github.com/serokell/nixfmt) - nixfmt is a formatter for Nix code, intended to apply a uniform style.
- [nixpkgs_fmt](https://github.com/nix-community/nixpkgs-fmt) - nixpkgs-fmt is a Nix code formatter for nixpkgs.
- [ocamlformat](https://github.com/ocaml-ppx/ocamlformat) - Auto-formatter for OCaml code.
+- [pangu](https://github.com/vinta/pangu.py) - Insert whitespace between CJK and half-width characters.
- [perlimports](https://github.com/perl-ide/App-perlimports) - Make implicit Perl imports explicit.
- [perltidy](https://github.com/perltidy/perltidy) - Perl::Tidy, a source code formatter for Perl.
- [pg_format](https://github.com/darold/pgFormatter) - PostgreSQL SQL syntax beautifier.
diff --git a/lua/conform/formatters/pangu.lua b/lua/conform/formatters/pangu.lua
new file mode 100644
index 0000000..54b60ca
--- /dev/null
+++ b/lua/conform/formatters/pangu.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/vinta/pangu.py",
+ description = "Insert whitespace between CJK and half-width characters",
+ },
+ command = "pangu",
+ stdin = true,
+}