rename dashboard to header

This commit is contained in:
asep komarudin 2023-03-06 19:36:07 +07:00
parent ad59d61555
commit 7433474605
4 changed files with 7 additions and 7 deletions

View file

@ -23,8 +23,8 @@ config = {
custom_lualine = opt("custom_lualine", false), custom_lualine = opt("custom_lualine", false),
component_separators = opt("component_separators", { left = " ", right = " " }), component_separators = opt("component_separators", { left = " ", right = " " }),
section_separators = opt("section_separators", { left = " ", right = " " }), section_separators = opt("section_separators", { left = " ", right = " " }),
dashboard1 = opt("dashboard1", nil), header1 = opt("header1", nil),
dashboard2 = opt("dashboard2", nil), header2 = opt("header2", nil),
footer = opt("footer", nil), footer = opt("footer", nil),
model = opt("model", 1), model = opt("model", 1),
format_on_save = opt("format_on_save", 1), format_on_save = opt("format_on_save", 1),

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_dashboard1 = { -- vim.g.pcode_header1 = {
-- [[ _ __ __ ]], -- [[ _ __ __ ]],
-- [[ ___ ___ (____ / /__ _______ ___/ ___ ]], -- [[ ___ ___ (____ / /__ _______ ___/ ___ ]],
-- [[ / _ / _ \ / / _ \/ '_/ / __/ _ / _ / -_) ]], -- [[ / _ / _ \ / / _ \/ '_/ / __/ _ / _ / -_) ]],
@ -10,7 +10,7 @@
-- [[ /_/ |___/ ]], -- [[ /_/ |___/ ]],
-- } -- }
-- vim.g.pcode_dashboard2 = { -- vim.g.pcode_header2 = {
-- [[ __ ]], -- [[ __ ]],
-- [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], -- [[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
-- [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]], -- [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
@ -22,4 +22,4 @@
-- 1 startify model -- 1 startify model
-- 2 dashboard model -- 2 dashboard model
vim.g.pcode_model = 2 -- isi dengan 1 atau 2 untuk model dashboard vim.g.pcode_model = 1 -- isi dengan 1 atau 2 untuk model dashboard

View file

@ -16,7 +16,7 @@ local board = {
local data_exists, custom_dasboard = pcall(require, "core.config") local data_exists, custom_dasboard = pcall(require, "core.config")
if data_exists then if data_exists then
local data_board = custom_dasboard.dashboard2 local data_board = custom_dasboard.header2
if data_board ~= nil then if data_board ~= nil then
board = data_board board = data_board
end end

View file

@ -11,7 +11,7 @@ dash_model = {
local data_exists, custom_dasboard = pcall(require, "core.config") local data_exists, custom_dasboard = pcall(require, "core.config")
if data_exists then if data_exists then
local board = custom_dasboard.dashboard1 local board = custom_dasboard.header1
if board ~= nil then if board ~= nil then
dash_model = board dash_model = board
end end