plugins.lexima.settings

The configuration options for lexima without the lexima_ prefix.

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

  • foo_bar = 1 -> :setglobal lexima_foo_bar=1
  • hello = "world" -> :setglobal lexima_hello="world"
  • some_toggle = true -> :setglobal lexima_some_toggle
  • other_toggle = false -> :setglobal nolexima_other_toggle

Type: attribute set of anything

Default: { }

Example:

{
  enable_endwise_rules = 0;
  enable_space_rules = 0;
  map_escape = "";
}

Declared by:

plugins.lexima.settings.enable_basic_rules

Whether to enable |lexima-basic-rules| by default.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.lexima.settings.enable_endwise_rules

Whether to enable |lexima-endwise-rules| by default.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.lexima.settings.enable_newline_rules

Whether to enable |lexima-newline-rules| by default.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.lexima.settings.enable_space_rules

Whether to enable |lexima-space-rules| by default.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.lexima.settings.accept_pum_with_enter

Whether <cr> can be used to accept completions when the |popup-menu| is visible.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.lexima.settings.ctrlh_as_backspace

Whether <C-h> should be usable in the same manner as <BS>.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.lexima.settings.disable_abbrev_trigger

By default, lexima inputs <C-]> to expand an abbreviation. Set this option to 1 to disable this behavior.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.lexima.settings.disable_on_nofile

Whether to disable all lexima rules on buftype=nofile.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.lexima.settings.map_escape

lexima.vim defines a insert mode mapping to <Esc> by default.

If you don’t want to map <Esc>, set this variable to another left-hand-side, or "" to not create a default mapping to |lexima#insmode#escape()|.

Type: null or string or raw lua code

Default: null

Plugin default: "<Esc>"

Declared by:

plugins.lexima.settings.no_default_rules

Whether to disable the default rules.

You can explicitly set default rules by calling |lexima#set_default_rules()|.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by: