mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Merge pull request #7 from terlar/add-terraform-formatter
Add terraform formatter
This commit is contained in:
commit
49568bb166
1 changed files with 4 additions and 2 deletions
|
@ -421,7 +421,8 @@ argument, a buffer containing the output of the formatter."
|
|||
(defcustom apheleia-formatters
|
||||
'((black . ("black" "-"))
|
||||
(prettier . (npx "prettier" file))
|
||||
(gofmt . ("gofmt")))
|
||||
(gofmt . ("gofmt"))
|
||||
(terraform . ("terraform" "fmt" "-")))
|
||||
"Alist of code formatting commands.
|
||||
The keys may be any symbols you want, and the values are
|
||||
commands, lists of strings and symbols, in the format of
|
||||
|
@ -445,7 +446,8 @@ commands, lists of strings and symbols, in the format of
|
|||
(sass-mode . prettier)
|
||||
(typescript-mode . prettier)
|
||||
(web-mode . prettier)
|
||||
(yaml-mode . prettier))
|
||||
(yaml-mode . prettier)
|
||||
(terraform-mode . terraform))
|
||||
"Alist mapping major mode names to formatters to use in those modes.
|
||||
This determines what formatter to use in buffers without a
|
||||
setting for `apheleia-formatter'. The keys are major mode
|
||||
|
|
Loading…
Add table
Reference in a new issue