aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorkarei <31644842+kareigu@users.noreply.github.com>2024-02-21 22:14:17 +0200
committerGitHub <noreply@github.com>2024-02-21 12:14:17 -0800
commit79d7fd9ee84e603bdb66038b1d1ed2703ec08d14 (patch)
tree0a7fd4d5177b7617aa8671f094e35d098ba3f7a4 /lua
parentb8624e46d83c8b59e5d4a773bdcae6ffc3b9639a (diff)
feat: add `gersemi` formatter (#305)
* Add `formatters/gersemi.lua` * Add `gersemi` to README.md
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/gersemi.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/conform/formatters/gersemi.lua b/lua/conform/formatters/gersemi.lua
new file mode 100644
index 0000000..4c97717
--- /dev/null
+++ b/lua/conform/formatters/gersemi.lua
@@ -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" }),
+}