startify.lua 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. local M = {}
  2. function M.get_sections()
  3. local header = {
  4. type = "text",
  5. val = {
  6. [[ __ _ ___ ]],
  7. [[ / / __ ______ ____ _____| | / (_)___ ___ ]],
  8. [[ / / / / / / __ \/ __ `/ ___/ | / / / __ `__ \]],
  9. [[ / /___/ /_/ / / / / /_/ / / | |/ / / / / / / /]],
  10. [[/_____/\__,_/_/ /_/\__,_/_/ |___/_/_/ /_/ /_/ ]],
  11. },
  12. opts = {
  13. hl = "Label",
  14. shrink_margin = false,
  15. -- wrap = "overflow";
  16. },
  17. }
  18. local top_buttons = {
  19. entries = {
  20. { "e", lvim.icons.ui.NewFile .. " New File", "<CMD>ene!<CR>" },
  21. },
  22. }
  23. local bottom_buttons = {
  24. entries = {
  25. { "q", "Quit", "<CMD>quit<CR>" },
  26. },
  27. }
  28. local footer = {
  29. type = "group",
  30. }
  31. return {
  32. header = header,
  33. top_buttons = top_buttons,
  34. bottom_buttons = bottom_buttons,
  35. -- this is probably broken
  36. footer = footer,
  37. }
  38. end
  39. return M