chore(docs): auto generate vimdoc
This commit is contained in:
committed by
github-actions[bot]
parent
fb47f6348a
commit
f1c9d01694
@@ -153,56 +153,68 @@ The theme comes in three styles, `storm`, a darker variant `night` and `day`.
|
|||||||
The **day** style will be used if:
|
The **day** style will be used if:
|
||||||
|
|
||||||
|
|
||||||
- `vim.g.tokyonight_style = "day"`
|
- `{ style = "day"}` was passed to `setup(options)`
|
||||||
- or `vim.o.background = "light"`
|
- or `vim.o.background = "light"`
|
||||||
|
|
||||||
|
|
||||||
│ Option │ Default │ Description │
|
TokyoNight will use the default options, unless you call `setup`.
|
||||||
│tokyonight_style │"storm" │The theme comes in three styles, storm, a darker variant night and day. │
|
|
||||||
│tokyonight_terminal_colors │true │Configure the colors used when opening a :terminal in Neovim │
|
|
||||||
│tokyonight_italic_comments │true │Make comments italic │
|
|
||||||
│tokyonight_italic_keywords │true │Make keywords italic │
|
|
||||||
│tokyonight_italic_functions │false │Make functions italic │
|
|
||||||
│tokyonight_italic_variables │false │Make variables and identifiers italic │
|
|
||||||
│tokyonight_transparent │false │Enable this to disable setting the background color │
|
|
||||||
│tokyonight_hide_inactive_statusline│false │Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.│
|
|
||||||
│tokyonight_sidebars │{} │Set a darker background on sidebar-like windows. For example: ["qf", "vista_kind", "terminal", "packer"] │
|
|
||||||
│tokyonight_transparent_sidebar │false │Sidebar like windows like NvimTree get a transparent background │
|
|
||||||
│tokyonight_dark_sidebar │true │Sidebar like windows like NvimTree get a darker background │
|
|
||||||
│tokyonight_dark_float │true │Float windows like the lsp diagnostics windows get a darker background. │
|
|
||||||
│tokyonight_colors │{} │You can override specific color groups to use other groups or a hex color │
|
|
||||||
│tokyonight_day_brightness │0.3 │Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors │
|
|
||||||
│tokyonight_lualine_bold │false │When true, section headers in the lualine theme will be bold │
|
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
-- Example config in Lua
|
require("tokyonight").setup({
|
||||||
vim.g.tokyonight_style = "night"
|
-- your configuration comes here
|
||||||
vim.g.tokyonight_italic_functions = true
|
-- or leave it empty to use the default settings
|
||||||
vim.g.tokyonight_sidebars = { "qf", "vista_kind", "terminal", "packer" }
|
style = "storm", -- The theme comes in three styles, `storm`, a darker variant `night` and `day`
|
||||||
|
transparent = false, -- Enable this to disable setting the background color
|
||||||
|
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim |
|
||||||
|
styles = {
|
||||||
|
-- Style to be applied to different syntax groups
|
||||||
|
-- Value is any valid attr-list value `:help attr-list`
|
||||||
|
comments = "italic",
|
||||||
|
keywords = "italic",
|
||||||
|
functions = "NONE",
|
||||||
|
variables = "NONE",
|
||||||
|
-- Background styles. Can be "dark", "transparent" or "normal"
|
||||||
|
sidebars = "dark", -- style for sidebars, see below
|
||||||
|
floats = "dark", -- style for floating windows
|
||||||
|
},
|
||||||
|
sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` |
|
||||||
|
day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors |
|
||||||
|
hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. |
|
||||||
|
lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold |
|
||||||
|
|
||||||
-- Change the "hint" color to the "orange" color, and make the "error" color bright red
|
--- You can override specific color groups to use other groups or a hex color |
|
||||||
vim.g.tokyonight_colors = { hint = "orange", error = "#ff0000" }
|
--- fucntion will be called with a ColorScheme table
|
||||||
|
---@param colors ColorScheme
|
||||||
|
on_colors = function(colors) end,
|
||||||
|
|
||||||
-- Load the colorscheme
|
--- You can override specific highlights to use other groups or a hex color |
|
||||||
vim.cmd[[colorscheme tokyonight]]
|
--- fucntion will be called with a Highlights and ColorScheme table
|
||||||
|
---@param highlights Highlights
|
||||||
|
---@param colors ColorScheme
|
||||||
|
on_highlights = function(highlights, colors) end,
|
||||||
|
}
|
||||||
<
|
<
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
" Example config in VimScript
|
-- Example config in Lua
|
||||||
let g:tokyonight_style = "night"
|
require("tokyonight").setup({
|
||||||
let g:tokyonight_italic_functions = 1
|
-- use the night style
|
||||||
let g:tokyonight_sidebars = [ "qf", "vista_kind", "terminal", "packer" ]
|
style = "night",
|
||||||
|
-- disable italic for functions
|
||||||
|
styles = {
|
||||||
|
functions = "NONE"
|
||||||
|
},
|
||||||
|
sidebars = { "qf", "vista_kind", "terminal", "packer" },
|
||||||
|
-- Change the "hint" color to the "orange" color, and make the "error" color bright red
|
||||||
|
on_colors = function(colors) {
|
||||||
|
colors.hint = colors.orange
|
||||||
|
colors.error = "#ff0000"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
" Change the "hint" color to the "orange" color, and make the "error" color bright red
|
-- Load the colorscheme
|
||||||
let g:tokyonight_colors = {
|
vim.cmd[[colorscheme tokyonight]]
|
||||||
\ 'hint': 'orange',
|
|
||||||
\ 'error': '#ff0000'
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" Load the colorscheme
|
|
||||||
colorscheme tokyonight
|
|
||||||
<
|
<
|
||||||
|
|
||||||
|
|
||||||
@@ -234,7 +246,7 @@ You can easily use the color palette for other plugins inside your Neovim
|
|||||||
config:
|
config:
|
||||||
|
|
||||||
>
|
>
|
||||||
local colors = require("tokyonight.colors").setup({}) -- pass in any of the config options as explained above
|
local colors = require("tokyonight.colors").setup() -- pass in any of the config options as explained above
|
||||||
local util = require("tokyonight.util")
|
local util = require("tokyonight.util")
|
||||||
|
|
||||||
aplugin.background = colors.bg_dark
|
aplugin.background = colors.bg_dark
|
||||||
@@ -252,7 +264,7 @@ How to add a new extra template:
|
|||||||
|
|
||||||
1. create a file like `lua/tokyonight/extra/cool-app.lua`
|
1. create a file like `lua/tokyonight/extra/cool-app.lua`
|
||||||
2. add the name and output file extension to the `extras` table in `lua/tokyonight/extra/init.lua`
|
2. add the name and output file extension to the `extras` table in `lua/tokyonight/extra/init.lua`
|
||||||
3. in the root directory, run `$ lua lua/tokyonight/extra/init.lua` to generate / update extra themes
|
3. in Nvim, run `:lua require("tokyonight.extra").setup()` to generate / update extra themes
|
||||||
4. commit the newly created themes under `extra/`
|
4. commit the newly created themes under `extra/`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user