Skip to content

Commit

Permalink
Add dprint formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 12, 2023
1 parent 0d45035 commit 72b8f75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- [x] [cbfmt](https://github.com/lukas-reineke/cbfmt)
- [x] [clang-format](https://www.kernel.org/doc/html/latest/process/clang-format.html)
- [ ] [djhtml](https://github.com/rtts/djhtml)
- [ ] [dprint](https://dprint.dev/)
- [ ] [fish_indent](https://fishshell.com/docs/current/cmds/fish_indent.html)
- [ ] [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt)
- [ ] [gofmt](https://pkg.go.dev/cmd/gofmt)
Expand Down
7 changes: 7 additions & 0 deletions lua/guard-collection/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ M.djhtml = {
stdin = true,
}

M.dprint = {
cmd = "dprint",
args = { "fmt", "--stdin" },
stdin = true,
fname = true,
}

M.fish_indent = {
cmd = 'fish_indent',
stdin = true,
Expand Down

0 comments on commit 72b8f75

Please sign in to comment.