Skip to content

Commit

Permalink
feat: add gersemi formatter (#305)
Browse files Browse the repository at this point in the history
* Add `formatters/gersemi.lua`

* Add `gersemi` to README.md
  • Loading branch information
kareigu authored Feb 21, 2024
1 parent b8624e4 commit 79d7fd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ You can view this list in vim with `:help conform-formatters`
- [fourmolu](https://hackage.haskell.org/package/fourmolu) - Fourmolu is a formatter for Haskell source code.
- [gci](https://github.com/daixiang0/gci) - GCI, a tool that controls Go package import order and makes it always deterministic.
- [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript.
- [gersemi](https://github.com/BlankSpruce/gersemi) - A formatter to make your CMake code the real treasure.
- [gn](https://gn.googlesource.com/gn/) - gn build system.
- [gofmt](https://pkg.go.dev/cmd/gofmt) - Formats go programs.
- [gofumpt](https://github.com/mvdan/gofumpt) - Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with.
Expand Down
11 changes: 11 additions & 0 deletions lua/conform/formatters/gersemi.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local util = require("conform.util")
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/BlankSpruce/gersemi",
description = "A formatter to make your CMake code the real treasure.",
},
command = "gersemi",
args = { "--quiet", "-" },
cwd = util.root_file({ ".gersemirc" }),
}

0 comments on commit 79d7fd9

Please sign in to comment.