-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add beautysh, taplo, trim_newlines and trim_whitespace (#29)
* feat: add beautysh * feat: add taplo * feat: add trim_newlines * feat: add trim_whitespace * doc: mention that `trim_newlines` and `trim_whitespaces` are using `awk` --------- Co-authored-by: xfzv <>
- Loading branch information
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
---@type conform.FileFormatterConfig | ||
return { | ||
meta = { | ||
url = "https://github.com/lovesegfault/beautysh", | ||
description = "A Bash beautifier for the masses.", | ||
}, | ||
command = "beautysh", | ||
args = { "-" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
---@type conform.FileFormatterConfig | ||
return { | ||
meta = { | ||
url = "https://github.com/tamasfe/taplo", | ||
description = "A TOML toolkit written in Rust", | ||
}, | ||
command = "taplo", | ||
args = { "format", "-" }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
---@type conform.FileFormatterConfig | ||
return { | ||
meta = { | ||
url = "https://www.gnu.org/software/gawk/manual/gawk.html", | ||
description = "Trim new lines with awk", | ||
}, | ||
command = "awk", | ||
args = { 'NF{print s $0; s=""; next} {s=s ORS}' }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
---@type conform.FileFormatterConfig | ||
return { | ||
meta = { | ||
url = "https://www.gnu.org/software/gawk/manual/gawk.html", | ||
description = "Trim whitespaces with awk", | ||
}, | ||
command = "awk", | ||
args = { '{ sub(/[ \t]+$/, ""); print }' }, | ||
} |