Skip to content

Commit

Permalink
Enable Prettier's Lua support
Browse files Browse the repository at this point in the history
Re-implementation of #65
  • Loading branch information
lassik committed Nov 21, 2020
1 parent 6c9c422 commit 4aa549d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Supported languages
* **Kotlin** ([*ktlint*](https://github.com/shyiko/ktlint))
* **LaTeX** ([*latexindent*](https://github.com/cmhughes/latexindent.pl))
* **Ledger** ([*ledger-mode*](https://github.com/ledger/ledger-mode))
* **Lua** ([*lua-fmt*](https://github.com/trixnz/lua-fmt))
* **Lua** ([*lua-fmt*](https://github.com/trixnz/lua-fmt), [*prettier plugin-lua*](https://github.com/prettier/plugin-lua))
* **Markdown** ([*prettier*](https://prettier.io/))
* **Nix** ([*nixfmt*](https://github.com/serokell/nixfmt))
* **OCaml** ([*ocp-indent*](https://opam.ocaml.org/packages/ocp-indent/))
Expand Down
6 changes: 3 additions & 3 deletions format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
;; - Kotlin (ktlint)
;; - LaTeX (latexindent)
;; - Ledger (ledger-mode)
;; - Lua (lua-fmt)
;; - Lua (lua-fmt, prettier plugin-lua)
;; - Markdown (prettier)
;; - Nix (nixfmt)
;; - OCaml (ocp-indent)
Expand Down Expand Up @@ -646,9 +646,9 @@ Consult the existing formatters for examples of BODY."

(define-format-all-formatter prettier
(:executable "prettier")
(:install "npm install --global prettier @prettier/plugin-php prettier-plugin-solidity prettier-plugin-toml")
(:install "npm install --global prettier @prettier/plugin-lua @prettier/plugin-php prettier-plugin-solidity prettier-plugin-toml")
(:languages
"CSS" "GraphQL" "JavaScript" "JSON" "JSX" "Less" "Markdown" "PHP"
"CSS" "GraphQL" "JavaScript" "JSON" "JSX" "Less" "Lua" "Markdown" "PHP"
"SCSS" "Solidity" "TOML" "TSX" "TypeScript" "Vue" "YAML"
;; TODO: Use html-tidy instead of prettier for plain HTML. Enable
;; prettier's HTML support once we have multi-formatter support.
Expand Down

0 comments on commit 4aa549d

Please sign in to comment.