<commit_before>local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
	return
end

local kind = require "user.lsp_kind"
local dashboard = require("alpha.themes.dashboard")
local thingy = io.popen 'echo "$(date +%a) $(date +%d) $(date +%b)" | tr -d "\n"'
local date = thingy:read "*a"
thingy:close()
dashboard.section.header.val = "╭─ " .. kind.icons.calendar .. " Today is " .. date .." ─╮" 
dashboard.section.buttons.val = {
	dashboard.button("f", "  Find file", ":Telescope find_files <CR>"),
	dashboard.button("e", "  New file", ":ene <BAR> startinsert <CR>"),
	dashboard.button("p", "  Find project", ":Telescope projects <CR>"),
	dashboard.button("r", "  Recently used files", ":Telescope oldfiles <CR>"),
	dashboard.button("t", "  Find text", ":Telescope live_grep <CR>"),
	dashboard.button("c", "  Configuration", ":e ~/.config/nvim/init.lua <CR>"),
	dashboard.button("q", "  Quit Neovim", ":qa<CR>"),
}

local function footer()
-- NOTE: requires the fortune-mod package to work
	local handle = io.popen("fortune")
  local fortune = require "alpha.fortune"()
	--local fortune = handle:read("*a")
	handle:close()
	return fortune
end

dashboard.section.footer.val = footer()

dashboard.section.footer.opts.hl = "Type"<commit_msg>Nvim: Lua update alpha config.<commit_after>local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
	return
end

local kind = require "user.lsp_kind"
local dashboard = require("alpha.themes.dashboard")
local thingy = io.popen 'echo "$(date +%a) $(date +%d) $(date +%b)" | tr -d "\n"'
local date = thingy:read "*a"
thingy:close()
dashboard.section.header.val = "╭─ " .. kind.icons.calendar .. " Today is " .. date .." ─╮" 
dashboard.section.buttons.val = {
	dashboard.button("r", "  Recent", ":Telescope oldfiles <CR>"),
	dashboard.button("f", "  Find file", ":Telescope find_files <CR>"),
	dashboard.button("t", "  Find text", ":Telescope live_grep <CR>"),
	dashboard.button("e", "  New file", ":ene <BAR> startinsert <CR>"),
	dashboard.button("p", "  Project", ":Telescope projects <CR>"),
	dashboard.button("c", "  Config", ":e ~/.config/nvim/init.lua <CR>"),
	dashboard.button("q", "  Quit", ":qa<CR>"),
}
dashboard.section.buttons.opts.width = 30

local function footer()
-- NOTE: requires the fortune-mod package to work
	local handle = io.popen("fortune")
  local fortune = require "alpha.fortune"()
	handle:close()
	return fortune
end

dashboard.section.footer.val = footer()

dashboard.section.footer.opts.hl = "Type"
{'fraction_non_alphanumeric': 0.19728434504792333, 'fraction_numerical': 0.0007987220447284345, 'mean_word_length': 4.771889400921659, 'pattern_counts': {'":': 14, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1198572', 'n_tokens_mistral': 916, 'n_tokens_neox': 919, 'n_words': 238}