mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
add: config global variable
This commit is contained in:
parent
77436b89c4
commit
a7726a6b33
30 changed files with 703 additions and 857 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue