colorschemes.tokyonight.settings

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

Type: attribute set of anything

Default: { }

Example:

{
  day_brightness = 0.3;
  dim_inactive = false;
  hide_inactive_statusline = false;
  light_style = "day";
  lualine_bold = false;
  on_colors = "function(colors) end";
  on_highlights = "function(highlights, colors) end";
  sidebars = [
    "qf"
    "vista_kind"
    "terminal"
    "packer"
  ];
  style = "storm";
  styles = {
    comments = {
      italic = true;
    };
    floats = "dark";
    functions = { };
    keywords = {
      italic = true;
    };
    sidebars = "dark";
    variables = { };
  };
  terminal_colors = true;
  transparent = false;
}

Declared by:

colorschemes.tokyonight.settings.day_brightness

Adjusts the brightness of the colors of the Day style. Number between 0 and 1, from dull to vibrant colors.

Plugin default: 0.3

Type: null or integer or floating point number between 0.0 and 1.0 (both inclusive)

Default: null

Declared by:

colorschemes.tokyonight.settings.dim_inactive

Dims inactive windows.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.settings.hide_inactive_statusline

Enabling this option will hide inactive statuslines and replace them with a thin border instead. Should work with the standard StatusLine and LuaLine.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.settings.light_style

The theme to use when the background is set to light.

Plugin default: "day"

Type: null or string or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.settings.lualine_bold

When true, section headers in the lualine theme will be bold.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.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.tokyonight.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.tokyonight.settings.sidebars

Set a darker background on sidebar-like windows.

Plugin default: ["qf" "help"]

Type: null or (list of (string or raw lua code))

Default: null

Declared by:

colorschemes.tokyonight.settings.style

The theme comes in three styles, storm, a darker variant night and day.

Plugin default: "storm"

Type: null or one of “storm”, “night”, “day” or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.settings.terminal_colors

Configure the colors used when opening a :terminal in Neovim

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

colorschemes.tokyonight.settings.transparent

Disable setting the background color.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by: