diff --git a/lua/custom/dashboard.lua b/lua/custom/dashboard.lua index 5f7a993..27076fc 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_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 diff --git a/lua/user/alpha.lua b/lua/user/alpha.lua index 21ef056..0a7fcdd 100644 --- a/lua/user/alpha.lua +++ b/lua/user/alpha.lua @@ -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") diff --git a/lua/user/dashboard.lua b/lua/user/dashboard.lua index c3fbf4c..2d75367 100644 --- a/lua/user/dashboard.lua +++ b/lua/user/dashboard.lua @@ -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 diff --git a/lua/user/startify.lua b/lua/user/startify.lua index a6782a4..a40cbf8 100644 --- a/lua/user/startify.lua +++ b/lua/user/startify.lua @@ -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