feat(format): add :lang erlang formatter
This commit is contained in:
parent
f80f52ba4f
commit
a9b4f6e219
2 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
:mode ("/rebar\\.config\\(?:\\.script\\)?\\'" . erlang-mode)
|
||||
:mode ("/\\(?:app\\|sys\\)\\.config\\'" . erlang-mode)
|
||||
:config
|
||||
(when (executable-find "efmt")
|
||||
(set-formatter! 'efmt '("efmt" "-") :modes '(erlang-mode)))
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'erlang-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue