summaryrefslogtreecommitdiffstats
path: root/lua/conform
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform')
-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" }),
+}