Update formatters and fix slow load bug with rustfmt
This commit is contained in:
parent
03f906b663
commit
b2d372c538
6 changed files with 25 additions and 14 deletions
|
|
@ -9,13 +9,22 @@ return {
|
|||
command = "black",
|
||||
prepend_args = { "--line-length", "100" },
|
||||
},
|
||||
"prettier",
|
||||
formatters = {
|
||||
golines = {
|
||||
args = {
|
||||
"--max-len=100",
|
||||
"--base-formatter=gofmt",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = false,
|
||||
timeout_ms = 2500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
|
|
@ -25,7 +34,12 @@ return {
|
|||
sh = { "beautysh" },
|
||||
tex = { "latexindent" },
|
||||
java = { "java" },
|
||||
javascript = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
json = { "prettier" },
|
||||
go = { "golines" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ return {
|
|||
"jdtls",
|
||||
"stylua",
|
||||
"black",
|
||||
"golines",
|
||||
"clang-format",
|
||||
"beautysh",
|
||||
"latexindent",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue