diff options
author | Nam Anh Pham Hoang <87260283+phnaharris@users.noreply.github.com> | 2024-05-22 19:11:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 05:11:35 -0700 |
commit | 18a3fa45d841c941399b4559ef60b39f2e3ded7c (patch) | |
tree | ac9108aa9f72ba99347e0baa6b671a0ba01fd162 /lua/conform/formatters | |
parent | 55619bcb306a1a37d487ed31b360a41c343ee74a (diff) |
feat: add forge_fmt formatter support for solidity filetype (#417)
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/forge_fmt.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/forge_fmt.lua b/lua/conform/formatters/forge_fmt.lua new file mode 100644 index 0000000..c6bdafb --- /dev/null +++ b/lua/conform/formatters/forge_fmt.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/foundry-rs/foundry", + description = "Forge is a command-line tool that ships with Foundry. Forge tests, builds, and deploys your smart contracts.", + }, + command = "forge", + args = { "fmt", "$FILENAME" }, + stdin = false, +} |