From b28f354786f8ac13d14482b00add8be309efc9c3 Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Mon, 24 Jun 2024 05:55:08 +0700 Subject: [PATCH] add: alternative disable config format on save --- lua/plugins/cppcfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/cppcfg.lua b/lua/plugins/cppcfg.lua index 2fddbba..6c267cd 100644 --- a/lua/plugins/cppcfg.lua +++ b/lua/plugins/cppcfg.lua @@ -52,7 +52,7 @@ if pcode.active_cpp_config then opts.formatters_by_ft.cpp = { "clang-format" } if psave == 1 then opts.format_on_save = { - timeout_ms = 500, + timeout_ms = pcode.format_timeout_ms or 500, lsp_fallback = true, } end