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

@ -14,12 +14,9 @@ local board = {
[[|_| |__/ ]],
}
local data_exists, custom_dasboard = pcall(require, "core.config")
if data_exists then
local data_board = custom_dasboard.header2
if data_board ~= nil then
board = data_board
end
local data_board = vim.g.pcode_header2
if data_board ~= nil then
board = data_board
end
local dashboard = require("alpha.themes.dashboard")
@ -44,11 +41,9 @@ dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts)
local footer_text = "Pojok Code"
if data_exists then
local data_txt = custom_dasboard.footer
if data_txt ~= nil then
footer_text = data_txt
end
local data_txt = vim.g.pcode_footer
if data_txt ~= nil then
footer_text = data_txt
end
vim.api.nvim_create_autocmd("User", {