summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorshurizzle <shura1991@gmail.com>2023-10-13 17:42:31 +0200
committerGitHub <noreply@github.com>2023-10-13 08:42:31 -0700
commitf90b2229c481252c43a71a004972b473952c1c3c (patch)
treecf2f3ec20c2ca7f54723de68cb093fd250f5d3db /lua
parent64a89568925c3f62b7ecdcf60b612001d2749eb1 (diff)
feat: add blade-formatter (#136)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/blade-formatter.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/conform/formatters/blade-formatter.lua b/lua/conform/formatters/blade-formatter.lua
new file mode 100644
index 0000000..8b552d9
--- /dev/null
+++ b/lua/conform/formatters/blade-formatter.lua
@@ -0,0 +1,12 @@
+local util = require("conform.util")
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/shufo/blade-formatter",
+ description = "An opinionated blade template formatter for Laravel that respects readability.",
+ },
+ command = "blade-formatter",
+ args = { "--stdin" },
+ stdin = true,
+ cwd = util.root_file({ "composer.json", "composer.lock" }),
+}