feat(nvim): Markdown Support

This commit is contained in:
js0ny 2024-11-29 17:15:06 +00:00
parent 9076795c4f
commit d2a2ea47de
7 changed files with 25 additions and 10 deletions

View file

@ -40,14 +40,7 @@ return {
dashboard.button('c', ' 转到设置', ':Telescope find_files cwd=~/.config/nvim<CR>'),
dashboard.button('SPC q', '󱊷 退出', ':qa<CR>'),
}
local handle = io.popen('fortune')
--- Handle the case where fortune is not installed
local fortune = ""
if handle then
fortune = handle:read("*a")
handle:close()
end
dashboard.section.footer.val = "今日 " .. os.date("%Y-%m-%d %A") .. " " .. fortune
dashboard.section.footer.val = "今日 " .. os.date("%Y-%m-%d %A") .. " "
dashboard.config.opts.noautocmd = true