Added base folke setup
This commit is contained in:
33
lua/plugins/dashboard.lua
Normal file
33
lua/plugins/dashboard.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
opt = false,
|
||||
config = function()
|
||||
local db = require("dashboard")
|
||||
|
||||
local logo = [[
|
||||
███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗
|
||||
████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║
|
||||
██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║
|
||||
██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║
|
||||
██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║
|
||||
╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝
|
||||
]]
|
||||
local lines = {}
|
||||
for line in logo:gmatch("[^\n]+") do
|
||||
table.insert(lines, line)
|
||||
end
|
||||
|
||||
db.custom_header = lines
|
||||
|
||||
vim.g.dashboard_custom_header = lines
|
||||
|
||||
vim.g.dashboard_custom_shortcut = {
|
||||
["last_session"] = "SPC s l",
|
||||
["find_history"] = "SPC f r",
|
||||
["find_file"] = "SPC spc",
|
||||
["new_file"] = "SPC f n",
|
||||
["change_colorscheme"] = "SPC h c",
|
||||
["find_word"] = "SPC f g",
|
||||
["book_marks"] = "SPC f b",
|
||||
}
|
||||
end,
|
||||
}
|
Reference in New Issue
Block a user