diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conform/formatters/astyle.lua | 14 |
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", + }), +} |