mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
enc: set global config dasboard to pcode
This commit is contained in:
parent
66c6917a73
commit
489b9491ab
4 changed files with 10 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
-- 1. Buka remark dash board dibawah
|
||||
-- 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
|
||||
-- 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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local model = vim.g.pcode_model
|
||||
local model = pcode.model
|
||||
if model ~= nil then
|
||||
if model == 1 then
|
||||
require("user.startify")
|
||||
|
|
|
@ -14,7 +14,7 @@ local board = {
|
|||
[[|_| |__/ ]],
|
||||
}
|
||||
|
||||
local data_board = vim.g.pcode_header2
|
||||
local data_board = pcode.header2
|
||||
if data_board ~= nil then
|
||||
board = data_board
|
||||
end
|
||||
|
@ -41,7 +41,7 @@ dashboard.opts.opts.noautocmd = true
|
|||
alpha.setup(dashboard.opts)
|
||||
|
||||
local footer_text = "Pojok Code"
|
||||
local data_txt = vim.g.pcode_footer
|
||||
local data_txt = pcode.footer
|
||||
if data_txt ~= nil then
|
||||
footer_text = data_txt
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ dash_model = {
|
|||
[[ /_/ |___/ ]],
|
||||
}
|
||||
|
||||
local board = vim.g.pcode_header1
|
||||
local board = pcode.header1
|
||||
if board ~= nil then
|
||||
dash_model = board
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ startify.section.bottom_buttons.val = {
|
|||
}
|
||||
|
||||
local footer_text = "Pojok Code"
|
||||
local data_txt = vim.g.pcode_footer
|
||||
local data_txt = pcode.footer
|
||||
if data_txt ~= nil then
|
||||
footer_text = data_txt
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue