Turn off error when formatting fails

This commit is contained in:
Dreaded_X 2024-06-28 01:46:31 +02:00
parent 70b182d3cc
commit 84128270ff
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -21,6 +21,7 @@ return {
},
opts = {
formatters_by_ft = require("tools").formatters,
notify_on_error = false,
format_on_save = function(bufnr)
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
return