Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

plugins.treesitter-context.settings

Options provided to the require('treesitter-context').setup function.

Type: open submodule of attribute set of lua value

Default: { }

Example:

{
  line_numbers = true;
  max_lines = 0;
  min_window_height = 0;
  mode = "topline";
  multiline_threshold = 20;
  separator = "-";
  trim_scope = "inner";
  zindex = 20;
}

Declared by:

plugins.treesitter-context.settings.on_attach

The implementation of a lua function which takes an integer buf as parameter and returns a boolean. Return false to disable attaching.

Type: null or lua function string

Default: null

Plugin default: "nil"

Declared by: