mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +02:00
add: config global variable
This commit is contained in:
parent
77436b89c4
commit
a7726a6b33
30 changed files with 703 additions and 857 deletions
|
@ -9,13 +9,11 @@ dash_model = {
|
|||
[[ /_/ |___/ ]],
|
||||
}
|
||||
|
||||
local data_exists, custom_dasboard = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
local board = custom_dasboard.header1
|
||||
if board ~= nil then
|
||||
dash_model = board
|
||||
end
|
||||
local board = vim.g.pcode_header1
|
||||
if board ~= nil then
|
||||
dash_model = board
|
||||
end
|
||||
|
||||
startify.section.header.val = dash_model
|
||||
startify.section.top_buttons.val = {
|
||||
startify.button("F", " Find file", ":Telescope find_files <CR>"),
|
||||
|
@ -41,11 +39,9 @@ startify.section.bottom_buttons.val = {
|
|||
}
|
||||
|
||||
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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue