pojokcodeid.nvim-lazy/lua/user/alpha.lua
2023-02-15 20:00:17 +07:00

17 lines
389 B
Lua

local data_exists, custom_dasboard = pcall(require, "custom.dashboard")
if data_exists then
if type(custom_dasboard) == "table" then
local model = custom_dasboard.model
if model ~= nil then
if model == 1 then
require("user.startify")
else
require("user.dashboard")
end
else
require("user.startify")
end
end
else
require("user.startify")
end