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.

Plugin default: 10

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

Default: null

Declared by:

plugins.twilight.settings.exclude

Exclude these filetypes.

Plugin default: []

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

Default: null

Declared by:

plugins.twilight.settings.expand

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

Plugin default:

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

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

Default: null

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.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by: