startify.lua 977 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. val = {},
  23. }
  24. local bottom_buttons = {
  25. entries = {
  26. { "q", "Quit", "<CMD>quit<CR>" },
  27. },
  28. val = {},
  29. }
  30. local footer = {
  31. type = "group",
  32. val = {},
  33. }
  34. return {
  35. header = header,
  36. top_buttons = top_buttons,
  37. bottom_buttons = bottom_buttons,
  38. -- this is probably broken
  39. footer = footer,
  40. }
  41. end
  42. return M