Added formatter configs
This commit is contained in:
parent
d6d1936973
commit
9419901702
@ -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
|
||||||
|
Reference in New Issue
Block a user