Skip to content

Commit

Permalink
chore: port nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 committed Sep 13, 2023
1 parent 03107f5 commit e7120b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
- [ ] [golines](https://pkg.go.dev/github.com/segmentio/golines)
- [ ] [google-java-format](https://github.com/google/google-java-format)
- [ ] [isort](https://github.com/PyCQA/isort)
- [ ] [mixformat](https://github.com/elixir-lang/elixir/)
- [x] [latexindent](https://github.com/cmhughes/latexindent.pl)
- [ ] [mixformat](https://github.com/elixir-lang/elixir/)
- [ ] [nixfmt](https://github.com/serokell/nixfmt)
- [ ] [pg_format](https://github.com/darold/pgFormatter)
- [x] [prettier](https://github.com/prettier/prettier)
- [ ] [rubocop](https://github.com/rubocop/rubocop)
Expand Down
5 changes: 5 additions & 0 deletions lua/guard-collection/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ M.mixformat = {
fname = true,
}

M.nixfmt = {
cmd = 'nixfmt',
stdin = true,
}

M.pg_format = {
cmd = 'pg_format',
stdin = true,
Expand Down
4 changes: 4 additions & 0 deletions test/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ chmod +x $bin/stylua
wget -q "$gh/cmhughes/latexindent.pl/releases/download/V3.22.2/latexindent-linux"
chmod +x latexindent-linux
mv latexindent-linux $bin/latexindent
# nixfmt
wget -q "$gh/serokell/nixfmt/releases/download/v0.5.0/nixfmt"
chmod +x nixfmt
mv nixfmt $bin/nixfmt

# test setup
luarocks install vusted
Expand Down

0 comments on commit e7120b3

Please sign in to comment.