From 941990170245864db365efb51284473071faefab Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 7 Feb 2023 11:12:09 -0800 Subject: [PATCH] Added formatter configs --- fnl/plugin.fnl | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) 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