enc: set global config dasboard to pcode

This commit is contained in:
asep.komarudin 2024-06-15 07:06:45 +07:00
parent 66c6917a73
commit 489b9491ab
4 changed files with 10 additions and 10 deletions

View file

@ -2,7 +2,7 @@
-- 1. Buka remark dash board dibawah -- 1. Buka remark dash board dibawah
-- 2. Ubah dashboard sesuai keinginan dan kebutuhan -- 2. Ubah dashboard sesuai keinginan dan kebutuhan
vim.g.pcode_header1 = { pcode.header1 = {
[[ _ __ __ ]], [[ _ __ __ ]],
[[ ___ ___ (____ / /__ _______ ___/ ___ ]], [[ ___ ___ (____ / /__ _______ ___/ ___ ]],
[[ / _ / _ \ / / _ \/ '_/ / __/ _ / _ / -_) ]], [[ / _ / _ \ / / _ \/ '_/ / __/ _ / _ / -_) ]],
@ -10,7 +10,7 @@ vim.g.pcode_header1 = {
[[ /_/ |___/ ]], [[ /_/ |___/ ]],
} }
-- vim.g.pcode_header2 = { -- pcode.header2 = {
-- [[ __ ]], -- [[ __ ]],
-- [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], -- [[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
-- [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]], -- [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
@ -18,7 +18,7 @@ vim.g.pcode_header1 = {
-- [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]], -- [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
-- [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]], -- [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
-- } -- }
-- vim.g.pcode_header1 = { -- pcode.header1 = {
-- " ▄ ▄ ", -- " ▄ ▄ ",
-- " ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ", -- " ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ",
-- " █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ ", -- " █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ ",
@ -30,8 +30,8 @@ vim.g.pcode_header1 = {
-- " █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ", -- " █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ",
-- } -- }
vim.g.pcode_footer = "PCode" pcode.footer = "PCode"
-- 1 startify model -- 1 startify model
-- 2 dashboard model -- 2 dashboard model
vim.g.pcode_model = 1 -- isi dengan 1 atau 2 untuk model dashboard pcode.model = 1 -- isi dengan 1 atau 2 untuk model dashboard

View file

@ -1,4 +1,4 @@
local model = vim.g.pcode_model local model = pcode.model
if model ~= nil then if model ~= nil then
if model == 1 then if model == 1 then
require("user.startify") require("user.startify")

View file

@ -14,7 +14,7 @@ local board = {
[[|_| |__/ ]], [[|_| |__/ ]],
} }
local data_board = vim.g.pcode_header2 local data_board = pcode.header2
if data_board ~= nil then if data_board ~= nil then
board = data_board board = data_board
end end
@ -41,7 +41,7 @@ dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts) alpha.setup(dashboard.opts)
local footer_text = "Pojok Code" local footer_text = "Pojok Code"
local data_txt = vim.g.pcode_footer local data_txt = pcode.footer
if data_txt ~= nil then if data_txt ~= nil then
footer_text = data_txt footer_text = data_txt
end end

View file

@ -9,7 +9,7 @@ dash_model = {
[[ /_/ |___/ ]], [[ /_/ |___/ ]],
} }
local board = vim.g.pcode_header1 local board = pcode.header1
if board ~= nil then if board ~= nil then
dash_model = board dash_model = board
end end
@ -38,7 +38,7 @@ startify.section.bottom_buttons.val = {
} }
local footer_text = "Pojok Code" local footer_text = "Pojok Code"
local data_txt = vim.g.pcode_footer local data_txt = pcode.footer
if data_txt ~= nil then if data_txt ~= nil then
footer_text = data_txt footer_text = data_txt
end end