add: alternative disable config format on save

This commit is contained in:
asep.komarudin 2024-06-24 05:55:08 +07:00
parent 4392eb6d59
commit b28f354786

View file

@ -52,7 +52,7 @@ if pcode.active_cpp_config then
opts.formatters_by_ft.cpp = { "clang-format" } opts.formatters_by_ft.cpp = { "clang-format" }
if psave == 1 then if psave == 1 then
opts.format_on_save = { opts.format_on_save = {
timeout_ms = 500, timeout_ms = pcode.format_timeout_ms or 500,
lsp_fallback = true, lsp_fallback = true,
} }
end end