Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change sql formatter to sql-formatter #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
;; - Shell script (beautysh, shfmt)
;; - Snakemake (snakefmt)
;; - Solidity (prettier plugin)
;; - SQL (pgformatter, sqlformat)
;; - SQL (pgformatter, sql-formatter)
;; - Svelte (prettier plugin)
;; - Swift (swiftformat)
;; - Terraform (terraform fmt)
Expand Down Expand Up @@ -182,7 +182,7 @@
("SCSS" prettier)
("Shell" shfmt)
("Solidity" prettier)
("SQL" sqlformat)
("SQL" sql-formatter)
("Svelte" prettier)
("Swift" swiftformat)
("Terraform" terraform-fmt)
Expand Down Expand Up @@ -1266,9 +1266,9 @@ Consult the existing formatters for examples of BODY."
(:features)
(:format (format-all--buffer-easy executable "-")))

(define-format-all-formatter sqlformat
(:executable "sqlformat")
(:install "pip install sqlparse")
(define-format-all-formatter sql-formatter
(:executable "sql-formatter")
(:install "npm install -g sql-formatter")
(:languages "SQL")
(:features)
(:format
Expand All @@ -1280,7 +1280,7 @@ Consult the existing formatters for examples of BODY."
'utf-8)))
(process-environment (cons (concat "PYTHONIOENCODING=" oenc)
process-environment)))
(format-all--buffer-easy executable "--encoding" ienc "-"))))
(format-all--buffer-easy executable))))

(define-format-all-formatter standard
(:executable "standard")
Expand Down