This commit is contained in:
asep komarudin 2023-01-24 20:58:38 +07:00
parent 254e6b9550
commit 0bbf088778
3 changed files with 20 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@

10
lua/custom/dashboard.lua Normal file
View file

@ -0,0 +1,10 @@
return "" -- hapus line ini dan buka remark dibawah (ganti dengan dashboard kalian)
-- return {
-- [[ __ ]],
-- [[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
-- [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
-- [[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]],
-- [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
-- [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
-- }

View file

@ -3,8 +3,7 @@ if not status_ok then
return
end
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
local board = {
[[ _ _ _ ]],
[[ (_) | | | | ]],
[[ _ __ ___ _ ___ | | __ ___ ___ __| | ___ ]],
@ -14,6 +13,14 @@ dashboard.section.header.val = {
[[| | _/ | ]],
[[|_| |__/ ]],
}
local custom_dasboard = require("custom.dashboard")
if custom_dasboard ~= "" then
board = custom_dasboard
end
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = board
dashboard.section.buttons.val = {
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),