summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-24 13:05:34 +0200
committerGitHub <noreply@github.com>2024-06-24 07:05:34 -0400
commit89af7f00b6e52647c7b0e04eb8cc9bc9cab91e3e (patch)
treed35f6ef500abf5d536ed8e73b3a36f7216648967 /lua
parent9a06e83527407a7600a2fe4e0d10adf432b6215e (diff)
feat: support brighterscript-formatter (#468)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/bsfmt.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/bsfmt.lua b/lua/conform/formatters/bsfmt.lua
new file mode 100644
index 0000000..6f3b319
--- /dev/null
+++ b/lua/conform/formatters/bsfmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/rokucommunity/brighterscript-formatter",
+ description = "A code formatter for BrighterScript (and BrightScript).",
+ },
+ command = "bsfmt",
+ args = { "$FILENAME", "--write" },
+ stdin = false,
+}