Added base folke setup

This commit is contained in:
2022-10-09 22:40:29 +02:00
parent 1afab44385
commit efc511cbcf
32 changed files with 2292 additions and 60 deletions

33
lua/plugins/dashboard.lua Normal file
View 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,
}