summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRishabh <53911515+Rishabh672003@users.noreply.github.com>2023-10-02 21:00:55 +0530
committerGitHub <noreply@github.com>2023-10-02 08:30:55 -0700
commit8b31d6b203cf4583cc53f278efc1c4d2b323845f (patch)
treed631bd9cdc877a405361c7806d626bbc78984def /lua
parent37d036704a100ef6e6457be45b4dfc2f8e429572 (diff)
feat : add astyle formatter (#97)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/astyle.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/conform/formatters/astyle.lua b/lua/conform/formatters/astyle.lua
new file mode 100644
index 0000000..58db841
--- /dev/null
+++ b/lua/conform/formatters/astyle.lua
@@ -0,0 +1,14 @@
+local util = require("conform.util")
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://astyle.sourceforge.net/astyle.html",
+ description = "A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective-C, C#, and Java Source Code",
+ },
+ command = "astyle",
+ args = { "--quiet" },
+ cwd = util.root_file({
+ ".astylerc",
+ "_astylerc",
+ }),
+}