summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-01 21:04:26 +0200
committerGitHub <noreply@github.com>2024-06-01 12:04:26 -0700
commitb421e95a31e6c3b064a964292255e3b9c762fddd (patch)
tree12228f2fb194557522e79725136bd649b14cc6fc /lua
parent2680f0a203fb11dafbbd728cfa3251e86e41cd8b (diff)
feat(lua): support lua-format (#432)
* feat: add support for lua-format * refactor: use stdin instead of file
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/lua-format.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/lua-format.lua b/lua/conform/formatters/lua-format.lua
new file mode 100644
index 0000000..683a4a4
--- /dev/null
+++ b/lua/conform/formatters/lua-format.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/Koihik/LuaFormatter",
+ description = "Code formatter for Lua.",
+ },
+ command = "lua-format",
+ stdin = true,
+}