feat(conform): do not disable formatters on timeout

This commit is contained in:
2025-12-29 12:05:57 +02:00
committed by Mykhailo Nikiforov
parent 06ccfa6b64
commit 42719a9f92

View File

@@ -124,14 +124,15 @@
return
end
if slow_format_filetypes[vim.bo[bufnr].filetype] then
return
end
-- if slow_format_filetypes[vim.bo[bufnr].filetype] then
-- return
-- end
local function on_format(err)
if err and err:match("timeout$") then
slow_format_filetypes[vim.bo[bufnr].filetype] = true
end
return
-- if err and err:match("timeout$") then
-- slow_format_filetypes[vim.bo[bufnr].filetype] = true
-- end
end
return { timeout_ms = 200, lsp_fallback = true }, on_format