Added formatter configs

This commit is contained in:
Alexander Rosenberg 2023-02-07 11:12:09 -08:00
parent d6d1936973
commit 9419901702
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -240,16 +240,20 @@
:cpp [ (module-fn! :formatter.filetypes.cpp :astyle) ]
:cmake [
(module-fn! :formatter.filetypes.cmake :cmakeformat) ]
:java [
(fn [] {:exe :astyle
:java [ (fn [] {:exe :astyle
:stdin true
:args [ :--mode=java ]}) ]
:sh [
(module-fn! :formatter.filetypes.sh :shfmt) ]
:rust [
(module-fn! :formatter.filetypes.rust :rustfmt) ]
:fennel [
(fn [] {:exe :fnlfmt
:sh [ (module-fn! :formatter.filetypes.sh :shfmt) ]
:rust [ (module-fn! :formatter.filetypes.rust :rustfmt) ]
:tex [ (module-fn! :formatter.filetypes.latex :latexindent) ]
:python [ (module-fn! :formatter.filetypes.python :yapf) ]
:json [ (module-fn! :formatter.filetypes.json :prettier) ]
:html [ (module-fn! :formatter.filetypes.html :prettier) ]
:css [ (module-fn! :formatter.filetypes.css :prettier) ]
:javascript [ (module-fn! :formatter.filetypes.javascript :prettier) ]
:markdown [
(module-fn! :formatter.filetypes.markdown :prettier ) ]
:fennel [ (fn [] {:exe :fnlfmt
:stdin true
:args [ "-" ]}) ]}))