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,18 +240,22 @@
:cpp [ (module-fn! :formatter.filetypes.cpp :astyle) ] :cpp [ (module-fn! :formatter.filetypes.cpp :astyle) ]
:cmake [ :cmake [
(module-fn! :formatter.filetypes.cmake :cmakeformat) ] (module-fn! :formatter.filetypes.cmake :cmakeformat) ]
:java [ :java [ (fn [] {:exe :astyle
(fn [] {:exe :astyle :stdin true
:stdin true :args [ :--mode=java ]}) ]
:args [ :--mode=java ]}) ] :sh [ (module-fn! :formatter.filetypes.sh :shfmt) ]
:sh [ :rust [ (module-fn! :formatter.filetypes.rust :rustfmt) ]
(module-fn! :formatter.filetypes.sh :shfmt) ] :tex [ (module-fn! :formatter.filetypes.latex :latexindent) ]
:rust [ :python [ (module-fn! :formatter.filetypes.python :yapf) ]
(module-fn! :formatter.filetypes.rust :rustfmt) ] :json [ (module-fn! :formatter.filetypes.json :prettier) ]
:fennel [ :html [ (module-fn! :formatter.filetypes.html :prettier) ]
(fn [] {:exe :fnlfmt :css [ (module-fn! :formatter.filetypes.css :prettier) ]
:stdin true :javascript [ (module-fn! :formatter.filetypes.javascript :prettier) ]
:args [ "-" ]}) ]})) :markdown [
(module-fn! :formatter.filetypes.markdown :prettier ) ]
:fennel [ (fn [] {:exe :fnlfmt
:stdin true
:args [ "-" ]}) ]}))
;; lspconfig ;; lspconfig
(use! :neovim/nvim-lspconfig (use! :neovim/nvim-lspconfig