Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
;; - Terraform (terraform fmt)
;; - TOML (prettier plugin, taplo fmt)
;; - TypeScript/TSX (prettier, ts-standard, prettierd, deno)
;; - Typst (typstyle, typstfmt)
;; - V (v fmt)
;; - Vue (prettier, prettierd)
;; - Verilog (iStyle, Verible)
Expand Down Expand Up @@ -199,6 +200,7 @@
("TOML" prettier)
("TSX" prettier)
("TypeScript" prettier)
("Typst" typstyle)
("V" v-fmt)
("Verilog" istyle-verilog)
("Vue" prettier)
Expand Down Expand Up @@ -1478,6 +1480,22 @@ Consult the existing formatters for examples of BODY."
(when (buffer-file-name)
(list "--stdin-filename" (buffer-file-name))))))

(define-format-all-formatter typstyle
(:executable "typstyle")
(:install
(macos "brew install typstyle")
(windows "scoop install typstyle"))
(:languages "Typst")
(:features)
(:format (format-all--buffer-easy executable)))

(define-format-all-formatter typstfmt
(:executable "typstfmt")
(:install (macos "brew install typstfmt"))
(:languages "Typst")
(:features)
(:format (format-all--buffer-easy executable)))

(define-format-all-formatter v-fmt
(:executable "v")
(:install)
Expand Down