diff --git a/lua/core/config.lua b/lua/core/config.lua index 2b46f1c..44e123b 100644 --- a/lua/core/config.lua +++ b/lua/core/config.lua @@ -23,8 +23,8 @@ config = { custom_lualine = opt("custom_lualine", false), component_separators = opt("component_separators", { left = " ", right = " " }), section_separators = opt("section_separators", { left = " ", right = " " }), - dashboard1 = opt("dashboard1", nil), - dashboard2 = opt("dashboard2", nil), + header1 = opt("header1", nil), + header2 = opt("header2", nil), footer = opt("footer", nil), model = opt("model", 1), format_on_save = opt("format_on_save", 1), diff --git a/lua/custom/dashboard.lua b/lua/custom/dashboard.lua index d57e52d..eafd4c6 100644 --- a/lua/custom/dashboard.lua +++ b/lua/custom/dashboard.lua @@ -2,7 +2,7 @@ -- 1. Buka remark dash board dibawah -- 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 -- 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 diff --git a/lua/user/dashboard.lua b/lua/user/dashboard.lua index d7c6074..ff908dc 100644 --- a/lua/user/dashboard.lua +++ b/lua/user/dashboard.lua @@ -16,7 +16,7 @@ local board = { local data_exists, custom_dasboard = pcall(require, "core.config") if data_exists then - local data_board = custom_dasboard.dashboard2 + local data_board = custom_dasboard.header2 if data_board ~= nil then board = data_board end diff --git a/lua/user/startify.lua b/lua/user/startify.lua index b247369..caf6a8f 100644 --- a/lua/user/startify.lua +++ b/lua/user/startify.lua @@ -11,7 +11,7 @@ dash_model = { local data_exists, custom_dasboard = pcall(require, "core.config") if data_exists then - local board = custom_dasboard.dashboard1 + local board = custom_dasboard.header1 if board ~= nil then dash_model = board end