Skip to content

Commit d2fdcc3

Browse files
Fredrik Foss-IndrehusFredrik Foss-Indrehus
andauthored
feat: add tex-fmt (#593)
Co-authored-by: Fredrik Foss-Indrehus <[email protected]>
1 parent 7a3d99e commit d2fdcc3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ You can view this list in vim with `:help conform-formatters`
352352
- [templ](https://templ.guide/commands-and-tools/cli/#formatting-templ-files) - Formats templ template files.
353353
- [terraform_fmt](https://www.terraform.io/docs/cli/commands/fmt.html) - The terraform-fmt command rewrites `terraform` configuration files to a canonical format and style.
354354
- [terragrunt_hclfmt](https://terragrunt.gruntwork.io/docs/reference/cli-options/#hclfmt) - Format hcl files into a canonical format.
355+
- [tex-fmt](https://github.com/WGUNDERWOOD/tex-fmt) - An extremely fast LaTeX formatter written in Rust.
355356
- [tlint](https://github.com/tighten/tlint) - Tighten linter for Laravel conventions with support for auto-formatting.
356357
- [tofu_fmt](https://opentofu.org/docs/cli/commands/fmt/) - The tofu-fmt command rewrites OpenTofu configuration files to a canonical format and style.
357358
- [trim_newlines](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua) - Trim empty lines at the end of the file.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ FORMATTERS *conform-formatter
485485
`terraform_fmt` - The terraform-fmt command rewrites `terraform` configuration
486486
files to a canonical format and style.
487487
`terragrunt_hclfmt` - Format hcl files into a canonical format.
488+
`tex-fmt` - An extremely fast LaTeX formatter written in Rust.
488489
`tlint` - Tighten linter for Laravel conventions with support for auto-
489490
formatting.
490491
`tofu_fmt` - The tofu-fmt command rewrites OpenTofu configuration files to a

lua/conform/formatters/tex-fmt.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://github.com/WGUNDERWOOD/tex-fmt",
5+
description = "An extremely fast LaTeX formatter written in Rust.",
6+
},
7+
command = "tex-fmt",
8+
args = { "-s" },
9+
}

0 commit comments

Comments
 (0)