aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform
diff options
context:
space:
mode:
authorRene Zbinden <rene.zbinden@gmail.com>2023-09-26 08:17:50 +0200
committerGitHub <noreply@github.com>2023-09-25 23:17:50 -0700
commit28ecd5cf9132213417bff41d79477354cb81f50c (patch)
treedcce215910e3ac7f1723d26e2a9f51166ab1e3a6 /lua/conform
parentbbb7df3b3210fff165f2be429cf669726d159de4 (diff)
feat: add templ support (#73)
chore: bla chore: update
Diffstat (limited to 'lua/conform')
-rw-r--r--lua/conform/formatters/templ.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/templ.lua b/lua/conform/formatters/templ.lua
new file mode 100644
index 0000000..74c6f7a
--- /dev/null
+++ b/lua/conform/formatters/templ.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://templ.guide/commands-and-tools/cli/#formatting-templ-files",
+ description = "Formats templ template files.",
+ },
+ command = "templ",
+ args = { "fmt" },
+}