-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.el
20 lines (19 loc) · 1.06 KB
/
config.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; editor/reformatter/config.el -*- lexical-binding: t; -*-
(use-package! reformatter
:defer 5
:config
(reformatter-define cuefmt :program "cue" :args '("fmt" "-" "-s"))
(reformatter-define whaturl-org :program "whaturl" :args '("--format" "org"))
(reformatter-define whaturl-md :program "whaturl" :args '("--format" "markdown"))
(reformatter-define refang :program "defang" :args '("--refang"))
(reformatter-define defang :program "defang" :args '(""))
(reformatter-define scalafmt :program "scalafmt" :args '("--stdin"))
(reformatter-define terraform-format :program "terraform" :args '("fmt" "-"))
(reformatter-define gofmt :program "gofmt")
(reformatter-define black :program "black" :args '("-" "--quiet"))
(reformatter-define isort-format :program "isort" :args '("--apply" "-"))
(reformatter-define prettier
:program "prettier"
:args (list "--stdin-filepath" (buffer-file-name)))
(reformatter-define json-format :program "jq" :args '("--indent" "4"))
(reformatter-define xml-format :program "xmllint" :args '("--format" "-") :mode nil))