add: config global variable

This commit is contained in:
asep.komarudin 2024-05-21 14:20:50 +07:00
parent 77436b89c4
commit a7726a6b33
30 changed files with 703 additions and 857 deletions

View file

@ -1,14 +1,9 @@
local data_exists, custom_dasboard = pcall(require, "core.config")
if data_exists then
local model = custom_dasboard.model
if model ~= nil then
if model == 1 then
require("user.startify")
else
require("user.dashboard")
end
else
local model = vim.g.pcode_model
if model ~= nil then
if model == 1 then
require("user.startify")
else
require("user.dashboard")
end
else
require("user.startify")