plugins.lsp.servers.ltex.settings.latex.commands

List of LATEX commands to be handled by the LATEX parser, listed together with empty arguments (e.g., "ref{}", "\documentclass[]{}").

This setting is an attrs with the commands as keys and corresponding actions as values.

If you edit the settings.json file directly, don’t forget to escape the initial backslash by replacing it with two backslashes.

Many common commands are already handled by default, even if you set this setting to an empty attrs.

Example:

  {
    "\\label{}" = "ignore";
    "\\documentclass[]{}" = "ignore";
    "\\cite{}" = "dummy";
    "\\cite[]{}" = "dummy";
  }

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

Default: null

Plugin default: { }

Declared by:

plugins.lsp.servers.ltex.settings.latex.environments

List of names of LATEX environments to be handled by the LATEX parser.

This setting is an attrs with the environment names as keys and corresponding actions as values.

Some environments are already handled by default, even if you set this setting to an empty attrs.

Example:

  {
    lstlisting = "ignore";
    verbatim = "ignore";
  }

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

Default: null

Plugin default: { }

Declared by: