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=";
Type: null or string or raw lua code
Default:
null
Plugin default: ""
Declared by:
plugins.dashboard.settings.config.shortcut.*.desc
The action’s description, shown next to the icon.
Type: null or string or raw lua code
Default:
null
Plugin default: ""
Declared by:
plugins.dashboard.settings.config.shortcut.*.desc_hl
The highlight group to use for the description.
Type: null or string or raw lua code
Default:
null
Plugin default: "DashboardDesc"
Declared by:
plugins.dashboard.settings.config.shortcut.*.group
Highlight group used with the “hyper” theme,
Type: null or string or raw lua code
Default:
null
Plugin default: ""
Declared by:
plugins.dashboard.settings.config.shortcut.*.icon
The icon to display with this action.
Type: null or string or raw lua code
Default:
null
Plugin default: ""
Declared by:
plugins.dashboard.settings.config.shortcut.*.icon_hl
The highlight group for the icon.
Type: null or string or raw lua code
Default:
null
Plugin default: "DashboardIcon"
Declared by:
plugins.dashboard.settings.config.shortcut.*.key
Shortcut key available in the dashboard buffer.
Note: this will not create an actual keymap.
Type: null or string or raw lua code
Default:
null
Plugin default: ""
Declared by:
plugins.dashboard.settings.config.shortcut.*.key_hl
The highlight group to use for the key.
Type: null or string or raw lua code
Default:
null
Plugin default: "DashboardKey"
Declared by: