plugins.lsp.servers.lua_ls.settings.hover.enable

Whether to enable hover tooltips or not.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.enumsLimit

When a value has multiple possible types, hovering it will display them. This setting limits how many will be displayed in the tooltip before they are truncated.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 5

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.expandAlias

When hovering a value with an @alias for its type, should the alias be expanded into its values. When enabled, ---@alias myType boolean|number appears as boolean|number, otherwise it will appear as myType.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.previewFields

When a table is hovered, its fields will be displayed in the tooltip. This setting limits how many fields can be seen in the tooltip. Setting to 0 will disable this feature.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 50

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.viewNumber

Enable hovering a non-decimal value to see its numeric value.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.viewString

Enable hovering a string that contains an escape character to see its true string value. For example, hovering "\x48" will display "H".

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.lua_ls.settings.hover.viewStringMax

The maximum number of characters that can be previewed by hovering a string before it is truncated.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 1000

Declared by: