From f0780e2231df2e4751e31db32c1545872412ba75 Mon Sep 17 00:00:00 2001 From: z775729168 Date: Fri, 10 Nov 2023 08:31:26 +0800 Subject: feat: add pangu (#188) --- README.md | 1 + lua/conform/formatters/pangu.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/pangu.lua 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, +} -- cgit v1.2.3-70-g09d2