Skip to content

Commit

Permalink
feat: add mojo format (stevearc#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
kndndrj authored Oct 4, 2024
1 parent 1a99fdc commit 9bde4fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/conform/formatters/mojo_format.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://docs.modular.com/mojo/cli/format",
description = "Official Formatter for The Mojo Programming Language",
},
command = "mojo",
args = { "format", "-q", "$FILENAME" },
stdin = false,
}

0 comments on commit 9bde4fb

Please sign in to comment.