plugins.alpha.layout

List of sections to layout for the dashboard

Type: string or raw lua code or list of (attribute set of anything)

Default: [ ]

Example:

[
  {
    type = "padding";
    val = 2;
  }
  {
    opts = {
      hl = "Type";
      position = "center";
    };
    type = "text";
    val = [
      "███╗   ██╗██╗██╗  ██╗██╗   ██╗██╗███╗   ███╗"
      "████╗  ██║██║╚██╗██╔╝██║   ██║██║████╗ ████║"
      "██╔██╗ ██║██║ ╚███╔╝ ██║   ██║██║██╔████╔██║"
      "██║╚██╗██║██║ ██╔██╗ ╚██╗ ██╔╝██║██║╚██╔╝██║"
      "██║ ╚████║██║██╔╝ ██╗ ╚████╔╝ ██║██║ ╚═╝ ██║"
      "╚═╝  ╚═══╝╚═╝╚═╝  ╚═╝  ╚═══╝  ╚═╝╚═╝     ╚═╝"
    ];
  }
  {
    type = "padding";
    val = 2;
  }
  {
    type = "group";
    val = [
      {
        on_press = {
          __raw = "function() vim.cmd[[ene]] end";
        };
        opts = {
          shortcut = "n";
        };
        type = "button";
        val = "  New file";
      }
      {
        on_press = {
          __raw = "function() vim.cmd[[qa]] end";
        };
        opts = {
          shortcut = "q";
        };
        type = "button";
        val = " Quit Neovim";
      }
    ];
  }
  {
    type = "padding";
    val = 2;
  }
  {
    opts = {
      hl = "Keyword";
      position = "center";
    };
    type = "text";
    val = "Inspiring quote here.";
  }
]

Declared by:

plugins.alpha.layout.*.opts

Additional options for the section

Type: attribute set of anything

Default: { }

plugins.alpha.layout.*.type

Type of section

Type: one of “button”, “group”, “padding”, “text”, “terminal”

plugins.alpha.layout.*.val

Value for section

Type: null or null or string or raw lua code or signed integer or list of (string or attribute set of anything)

Default: null