migrate config form function to global variable

This commit is contained in:
asep komarudin 2023-03-05 17:34:12 +07:00
parent b6f0601d3d
commit 38d2c29a95
24 changed files with 248 additions and 245 deletions

View file

@ -1,9 +1,9 @@
local run = 0
local data_exists, frmt = pcall(require, "custom.format_onsave")
local data_exists, frmt = pcall(require, "core.config")
if not data_exists then
run = 1
end
if frmt.disable == 0 then
if frmt.format_on_save == 1 then
run = 1
end