mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
update config dashboard
This commit is contained in:
parent
95f22323f1
commit
178a328cd6
7 changed files with 108 additions and 75 deletions
|
@ -1,12 +1,24 @@
|
|||
local alpha = require("alpha")
|
||||
local startify = require("alpha.themes.startify")
|
||||
startify.section.header.val = {
|
||||
local dash_model = {}
|
||||
dash_model = {
|
||||
[[ _ __ __ ]],
|
||||
[[ ___ ___ (____ / /__ _______ ___/ ___ ]],
|
||||
[[ / _ / _ \ / / _ \/ '_/ / __/ _ / _ / -_) ]],
|
||||
[[ / .__\_____/ /\___/_/\_\ \__/\___\_,_/\__/ ]],
|
||||
[[ /_/ |___/ ]],
|
||||
}
|
||||
|
||||
local data_exists, custom_dasboard = pcall(require, "custom.dashboard")
|
||||
if data_exists then
|
||||
if type(custom_dasboard) == "table" then
|
||||
local board = custom_dasboard.dashboard1
|
||||
if board ~= nil then
|
||||
dash_model = board
|
||||
end
|
||||
end
|
||||
end
|
||||
startify.section.header.val = dash_model
|
||||
startify.section.top_buttons.val = {
|
||||
startify.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
startify.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue