colorschemes.modus.settings

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

Type: attribute set of anything

Default: { }

Example:

{
  dim_inactive = false;
  on_colors = "function(colors) end";
  on_highlights = "function(highlights, colors) end";
  style = "auto";
  styles = {
    comments = {
      italic = true;
    };
    functions = { };
    keywords = {
      italic = true;
    };
    variables = { };
  };
  transparent = false;
  variant = "default";
}

Declared by:

colorschemes.modus.settings.dim_inactive

Dims inactive windows.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

colorschemes.modus.settings.on_colors

Override specific color groups to use other groups or a hex color. Function will be called with a ColorScheme table.

@param colors ColorScheme

Type: null or lua function string

Default: null

Plugin default: "function(colors) end"

Declared by:

colorschemes.modus.settings.on_highlights

Override specific highlights to use other groups or a hex color. Function will be called with a Highlights and ColorScheme table.

@param highlights Highlights
@param colors ColorScheme

Type: null or lua function string

Default: null

Plugin default: "function(highlights, colors) end"

Declared by:

colorschemes.modus.settings.style

The theme comes in a light modus_operandi style and a dark modus_vivendi style.

Type: null or one of “modus_operandi”, “modus_vivendi” or raw lua code

Default: null

Plugin default: "modus_operandi"

Declared by:

colorschemes.modus.settings.transparent

Disable setting the background color.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

colorschemes.modus.settings.variant

Styles come in four variants:

  • default is the plugin’s main style designed to cover a broad range of needs.
  • tinted tones down intensity and provides more color variety.
  • deuteranopia is optimized for users with red-green color deficiency.
  • tritanopia is optimized for users with blue-yellow color deficiency.

Type: null or one of “default”, “tinted”, “deuteranopia”, “tritanopia” or raw lua code

Default: null

Plugin default: "default"

Declared by: