plugins.sleuth.settings

The configuration options for sleuth without the sleuth_ prefix.

For example, the following settings are equivialent to these :setglobal commands:

  • foo_bar = 1 -> :setglobal sleuth_foo_bar=1
  • hello = "world" -> :setglobal sleuth_hello="world"
  • some_toggle = true -> :setglobal sleuth_some_toggle
  • other_toggle = false -> :setglobal nosleuth_other_toggle

Type: attribute set of anything

Default: { }

Example:

{
  gitcommit_heuristics = false;
  heuristics = true;
  no_filetype_indent_on = true;
}

Declared by:

plugins.sleuth.settings.heuristics

Whether to enable/disable heuristics by default.

You can also disable heuristics for individual filetypes:

  settings = {
    heuristics = true;
    gitcommit_heuristics = false;
  };

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.sleuth.settings.no_filetype_indent_on

Sleuth forces |:filetype-indent-on| by default, which enables file-type specific indenting algorithms and is highly recommended.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by: