Skip to content

Commit

Permalink
feat(zine): add superhtml and ziggy support (#531)
Browse files Browse the repository at this point in the history
* feat(superhtml): support SuperHTML formatter

Add support for SuperHTML formatter.

* feat(ziggy): support Ziggy formatter

Add support for Ziggy and Ziggy-Schema formatting.

* doc: add trailing period to superhtml

---------

Co-authored-by: Steven Arcangeli <[email protected]>
  • Loading branch information
rockorager and stevearc authored Sep 10, 2024
1 parent e82b7b1 commit 392fc98
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ You can view this list in vim with `:help conform-formatters`
- [styler](https://github.com/devOpifex/r.nvim) - R formatter and linter.
- [stylish-haskell](https://github.com/haskell/stylish-haskell) - Haskell code prettifier.
- [stylua](https://github.com/JohnnyMorganz/StyLua) - An opinionated code formatter for Lua.
- [superhtml](https://github.com/kristoff-it/superhtml) - HTML Language Server and Templating Language Library
- [swift_format](https://github.com/apple/swift-format) - Swift formatter from apple. Requires building from source with `swift build`.
- [swiftformat](https://github.com/nicklockwood/SwiftFormat) - SwiftFormat is a code library and command-line tool for reformatting `swift` code on macOS or Linux.
- [swiftlint](https://github.com/realm/SwiftLint) - A tool to enforce Swift style and conventions.
Expand All @@ -361,6 +362,7 @@ You can view this list in vim with `:help conform-formatters`
- [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.
- [ziggy](https://github.com/kristoff-it/ziggy) - A data serialization language for expressing clear API messages, config files, etc.
- [zprint](https://github.com/kkinnear/zprint) - Formatter for Clojure and EDN.
<!-- /FORMATTERS -->

Expand Down
2 changes: 2 additions & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ FORMATTERS *conform-formatter
`styler` - R formatter and linter.
`stylish-haskell` - Haskell code prettifier.
`stylua` - An opinionated code formatter for Lua.
`superhtml` - HTML Language Server and Templating Language Library
`swift_format` - Swift formatter from apple. Requires building from source with
`swift build`.
`swiftformat` - SwiftFormat is a code library and command-line tool for
Expand Down Expand Up @@ -496,6 +497,7 @@ FORMATTERS *conform-formatter
`yew-fmt` - Code formatter for the Yew framework.
`yq` - YAML/JSON processor
`zigfmt` - Reformat Zig source into canonical form.
`ziggy` - A data serialization language for expressing clear API messages, config files, etc.
`zprint` - Formatter for Clojure and EDN.

================================================================================
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/superhtml.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/kristoff-it/superhtml",
description = "HTML Language Server and Templating Language Library.",
},
command = "superhtml",
args = { "fmt", "--stdin" },
}
9 changes: 9 additions & 0 deletions lua/conform/formatters/ziggy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/kristoff-it/ziggy",
description = "A data serialization language for expressing clear API messages, config files, etc.",
},
command = "ziggy",
args = { "fmt", "--stdin" },
}
9 changes: 9 additions & 0 deletions lua/conform/formatters/ziggy_schema.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/kristoff-it/ziggy",
description = "A data serialization language for expressing clear API messages, config files, etc.",
},
command = "ziggy",
args = { "fmt", "--stdin-schema" },
}

0 comments on commit 392fc98

Please sign in to comment.