plugins.twilight.settings

Options provided to the require('twilight').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  context = 20;
  dimming = {
    alpha = 0.4;
  };
  expand = [
    "function"
    "method"
  ];
  treesitter = true;
}

Declared by:

plugins.twilight.settings.context

Amount of lines we will try to show around the current line.

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

Default: null

Plugin default: 10

Declared by:

plugins.twilight.settings.exclude

Exclude these filetypes.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default: []

Declared by:

plugins.twilight.settings.expand

For treesitter, we will always try to expand to the top-most ancestor with these types.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default:

[
  "function"
  "method"
  "table"
  "if_statement"
]

Declared by:

plugins.twilight.settings.treesitter

Use treesitter when available for the filetype. treesitter is used to automatically expand the visible text, but you can further control the types of nodes that should always be fully expanded.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: