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=";

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.center.*.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.center.*.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.center.*.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.center.*.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.center.*.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.center.*.key_format

Format string used when rendering the key. %s will be substituted with value of key.

Plugin default: "[%s]"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.dashboard.settings.config.center.*.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: