farout.nvim/README.md
2021-04-19 21:40:12 +02:00

2.3 KiB

🏙 Tokyo Night

A dark Neovim theme written in Lua ported from the Visual Studio Code TokyoNight theme.

Features

📦 Installation

Install the theme with your preferred package manager:

vim-plug

Plug 'folke/tokyonight.nvim'

packer

use 'folke/tokyonight.nvim'

🚀 Usage

Enable the colorscheme:

" Vim Script
colorscheme tokyonight
-- Lua
vim.cmd[[colorscheme tokyonight]]

To enable the TokyoNight theme for Lualine, simply specify it in your lualine settings:

require('lualine').setup {
  -- ... your lualine config
  theme = 'tokyonight'
  -- ... your lualine config
}

⚙️ Configuration

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

-- The theme comes in two styles, "storm" and a darker variant "night".
vim.g.tokyonight_style = "storm"

-- Comments are italicized by default
vim.g.tokyonight_italic_comments = true

-- Keywords are italicized by default
vim.g.tokyonight_italic_keywords = true

-- Functions are not italicized by default
vim.g.tokyonight_italic_functions = false

-- Enable this to disable setting the background color
vim.g.tokyonight_transparent = false

-- Enabling this option, will hide inactive statuslines and
-- replace them with a thin border instead. Should work with
-- the standard `StatusLine` and `LuaLine`.
vim.g.tokyonight_hide_inactive_statusline = true