summaryrefslogtreecommitdiff
path: root/lua/lvim/core/builtins/alpha/startify.lua
blob: e9d10a07da3a55cdf629d70dc02b43445c23f670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
local M = {}

function M.get_sections()
  local header = {
    type = "text",
    val = {
      [[    __                          _    ___         ]],
      [[   / /   __  ______  ____ _____| |  / (_)___ ___ ]],
      [[  / /   / / / / __ \/ __ `/ ___/ | / / / __ `__ \]],
      [[ / /___/ /_/ / / / / /_/ / /   | |/ / / / / / / /]],
      [[/_____/\__,_/_/ /_/\__,_/_/    |___/_/_/ /_/ /_/ ]],
    },
    opts = {
      hl = "Label",
      shrink_margin = false,
      -- wrap = "overflow";
    },
  }

  local top_buttons = {
    entries = {
      { "e", lvim.icons.ui.NewFile .. " New File", "<CMD>ene!<CR>" },
    },
  }

  local bottom_buttons = {
    entries = {
      { "q", "Quit", "<CMD>quit<CR>" },
    },
  }

  local footer = {
    type = "group",
  }

  return {
    header = header,
    top_buttons = top_buttons,
    bottom_buttons = bottom_buttons,
    -- this is probably broken
    footer = footer,
  }
end

return M