mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
migrate config form function to global variable
This commit is contained in:
parent
b6f0601d3d
commit
38d2c29a95
24 changed files with 248 additions and 245 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue