diff --git a/fnl/plugin.fnl b/fnl/plugin.fnl index ba9f165..3300f9f 100644 --- a/fnl/plugin.fnl +++ b/fnl/plugin.fnl @@ -240,18 +240,22 @@ :cpp [ (module-fn! :formatter.filetypes.cpp :astyle) ] :cmake [ (module-fn! :formatter.filetypes.cmake :cmakeformat) ] - :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 - :stdin true - :args [ "-" ]}) ]})) + :java [ (fn [] {:exe :astyle + :stdin true + :args [ :--mode=java ]}) ] + :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 [ "-" ]}) ]})) ;; lspconfig (use! :neovim/nvim-lspconfig