plugins.trouble.settings

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

Type: attribute set of anything

Default: { }

Example:

{
  callback = {
    __raw = ''
      function()
        print('nixvim')
      end
    '';
  };
  foo_bar = 42;
  hostname = "localhost:8080";
}

Declared by:

plugins.trouble.settings.auto_close

Automatically close the list when you have no diagnostics.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.auto_fold

Automatically fold a file trouble list at creation.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.auto_jump

For the given modes, automatically jump if there is only a single result.

Plugin default: ["lsp_definitions"]

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

Default: null

Declared by:

plugins.trouble.settings.auto_open

Automatically open the list when you have diagnostics.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.auto_preview

Automatically preview the location of the diagnostic. <esc> to close preview and go back to last window.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.cycle_results

Whether to cycle item list when reaching beginning or end of list

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.fold_closed

Icon used for closed folds

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.trouble.settings.fold_open

Icon used for open folds

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.trouble.settings.group

Group results by file

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.height

Height of the trouble list when position is top or bottom.

Plugin default: 10

Type: null or signed integer or floating point number or raw lua code

Default: null

Declared by:

plugins.trouble.settings.icons

Use devicons for filenames

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.include_declaration

For the given modes, include the declaration of the current symbol in the results.

Plugin default: ["lsp_references" "lsp_implementations" "lsp_definitions"]

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

Default: null

Declared by:

plugins.trouble.settings.indent_lines

Add an indent guide below the fold icons.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.mode

Mode for default list

Plugin default: "workspace_diagnostics"

Type: null or one of “workspace_diagnostics”, “document_diagnostics”, “quickfix”, “lsp_references”, “loclist” or raw lua code

Default: null

Declared by:

plugins.trouble.settings.padding

Add an extra new line on top of the list

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.position

Position of the list.

Plugin default: "bottom"

Type: null or one of “top”, “left”, “right”, “bottom” or raw lua code

Default: null

Declared by:

plugins.trouble.settings.use_diagnostic_signs

Enabling this will use the signs defined in your lsp client

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.trouble.settings.width

Width of the list when position is left or right.

Plugin default: 50

Type: null or signed integer or floating point number or raw lua code

Default: null

Declared by:

plugins.trouble.settings.win_config

Configuration for floating windows. See |nvim_open_win()|.

Plugin default:

{
  border = "single";
}

Type: null or (attribute set of (anything or raw lua code))

Default: null

Declared by: