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.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

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

Plugin default: function(colors) end

Type: null or lua function string

Default: null

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

Plugin default: function(highlights, colors) end

Type: null or lua function string

Default: null

Declared by:

colorschemes.modus.settings.style

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

Plugin default: "modus_operandi"

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

Default: null

Declared by:

colorschemes.modus.settings.transparent

Disable setting the background color.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

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.

Plugin default: "default"

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

Default: null

Declared by: