Skip to content

Commit

Permalink
feat: add support for yew-fmt
Browse files Browse the repository at this point in the history
Should close #314 :)
  • Loading branch information
hougesen committed May 9, 2024
1 parent 6dc1603 commit be558ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions lua/conform/formatters/yew-fmt.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit be558ed

Please sign in to comment.