plugins.dashboard.settings.config.shortcut

Shortcut actions to be added to the “hyper” theme.

Note: This option is only compatible with the “hyper” theme.

Type: null or (list of (attribute set of anything))

Default: null

Example:

[
  {
    action = {
      __raw = "function(path) vim.cmd('Telescope find_files') end";
    };
    desc = "Files";
    group = "Label";
    icon = " ";
    icon_hl = "@variable";
    key = "f";
  }
  {
    action = "Telescope app";
    desc = " Apps";
    group = "DiagnosticHint";
    key = "a";
  }
  {
    action = "Telescope dotfiles";
    desc = " dotfiles";
    group = "Number";
    key = "d";
  }
]

Declared by:

plugins.dashboard.settings.config.shortcut.*.action

Action done when you press key. Can be a command or a function.

To use a lua function, pass a raw type instead of a string, e.g:

  action.__raw = "function(path) vim.cmd('Telescope find_files cwd=' .. path) end";

Is equivialent to:

  action = "Telescope find_files cwd=";

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.desc

The action’s description, shown next to the icon.

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.desc_hl

The highlight group to use for the description.

Plugin default: "DashboardDesc"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.group

Highlight group used with the “hyper” theme,

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.icon

The icon to display with this action.

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.icon_hl

The highlight group for the icon.

Plugin default: "DashboardIcon"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.key

Shortcut key available in the dashboard buffer.

Note: this will not create an actual keymap.

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.shortcut.*.key_hl

The highlight group to use for the key.

Plugin default: "DashboardKey"

Type: null or string or raw lua code

Default: null

Declared by: