diff --git a/README.md b/README.md index 2ff572bf..ec29aa26 100644 --- a/README.md +++ b/README.md @@ -316,6 +316,7 @@ You can view this list in vim with `:help conform-formatters` - [yamlfix](https://github.com/lyz-code/yamlfix) - A configurable YAML formatter that keeps comments. - [yamlfmt](https://github.com/google/yamlfmt) - yamlfmt is an extensible command line tool or library to format yaml files. - [yapf](https://github.com/google/yapf) - Yet Another Python Formatter. +- [yew-fmt](https://github.com/schvv31n/yew-fmt) - Code formatter for the Yew framework. - [yq](https://github.com/mikefarah/yq) - YAML/JSON processor - [zigfmt](https://github.com/ziglang/zig) - Reformat Zig source into canonical form. - [zprint](https://github.com/kkinnear/zprint) - Formatter for Clojure and EDN. diff --git a/doc/conform.txt b/doc/conform.txt index 977a0f06..cd543a09 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -368,6 +368,7 @@ FORMATTERS *conform-formatter `yamlfmt` - yamlfmt is an extensible command line tool or library to format yaml files. `yapf` - Yet Another Python Formatter. +`yew-fmt` - Code formatter for the Yew framework. `yq` - YAML/JSON processor `zigfmt` - Reformat Zig source into canonical form. `zprint` - Formatter for Clojure and EDN. diff --git a/lua/conform/formatters/yew-fmt.lua b/lua/conform/formatters/yew-fmt.lua new file mode 100644 index 00000000..15fa8173 --- /dev/null +++ b/lua/conform/formatters/yew-fmt.lua @@ -0,0 +1,11 @@ +-- yew-fmt is a fork of rustfmt +local conf = vim.deepcopy(require("conform.formatters.rustfmt")) + +conf.meta = { + url = "https://github.com/schvv31n/yew-fmt", + description = "Code formatter for the Yew framework.", +} + +conf.command = "yew-fmt" + +return conf