plugins.dashboard.settings.config.center
Actions to be added to the center section of the “doom” theme.
Note: This option is only compatible with the “doom” theme.
Type: null or (list of (attribute set of anything))
Default:
null
Example:
[
{
action = "lua print(2)";
desc = "Find File ";
desc_hl = "String";
icon = " ";
icon_hl = "Title";
key = "b";
key_format = " %s";
key_hl = "Number";
keymap = "SPC f f";
}
{
action = {
__raw = "function() print(3) end";
};
desc = "Find Dotfiles";
icon = " ";
key = "f";
key_format = " %s";
keymap = "SPC f d";
}
]
Declared by:
plugins.dashboard.settings.config.center.*.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.center.*.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.center.*.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.center.*.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.center.*.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.center.*.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.center.*.key_format
Format string used when rendering the key.
%s
will be substituted with value of key
.
Type: null or string or raw lua code
Default:
null
Plugin default: "[%s]"
Declared by:
plugins.dashboard.settings.config.center.*.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: