mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +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,16 +1,14 @@
|
|||
local data_exists, custom_dasboard = pcall(require, "custom.dashboard")
|
||||
local data_exists, custom_dasboard = pcall(require, "core.config")
|
||||
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
|
||||
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
|
||||
else
|
||||
require("user.startify")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue