Skip to content

Commit

Permalink
Add mdformat formatter (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Libadoxon authored Oct 6, 2024
1 parent 9df35c9 commit 06da4a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- [ ] [ktlint](https://github.com/pinterest/ktlint)
- [ ] [ktfmt](https://github.com/facebook/ktfmt)
- [x] [latexindent](https://github.com/cmhughes/latexindent.pl)
- [ ] [mdformat](https://github.com/executablebooks/mdformat)
- [ ] [mixformat](https://github.com/elixir-lang/elixir/)
- [ ] [nixfmt](https://github.com/serokell/nixfmt)
- [ ] [ormolu](https://hackage.haskell.org/package/ormolu)
Expand Down
6 changes: 6 additions & 0 deletions lua/guard-collection/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ M.latexindent = {
stdin = true,
}

M.mdformat = {
cmd = 'mdformat',
args = { '-' },
stdin = true,
}

M.mixformat = {
cmd = 'mix',
args = { 'format', '-', '--stdin-filename' },
Expand Down

0 comments on commit 06da4a0

Please sign in to comment.