Update formatters and fix slow load bug with rustfmt

This commit is contained in:
Alex Selimov 2026-03-26 13:50:55 -04:00
parent 03f906b663
commit b2d372c538
6 changed files with 25 additions and 14 deletions

View file

@ -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" },
},
},
},
}
}

View file

@ -181,6 +181,7 @@ return {
"jdtls",
"stylua",
"black",
"golines",
"clang-format",
"beautysh",
"latexindent",