chore(docs): auto generate vimdoc
This commit is contained in:
parent
038ee4c59a
commit
68320b33ab
@ -196,8 +196,9 @@ TokyoNight will use the default options, unless you call `setup`.
|
||||
<
|
||||
|
||||
|
||||
Example for changing some settings and colors
|
||||
|
||||
>
|
||||
-- Example config in Lua
|
||||
require("tokyonight").setup({
|
||||
-- use the night style
|
||||
style = "night",
|
||||
@ -212,9 +213,45 @@ TokyoNight will use the default options, unless you call `setup`.
|
||||
colors.error = "#ff0000"
|
||||
}
|
||||
})
|
||||
|
||||
-- Load the colorscheme
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
<
|
||||
|
||||
|
||||
Example to make Telescope borderless
|
||||
<https://github.com/nvim-telescope/telescope.nvim/wiki/Gallery#borderless>
|
||||
|
||||
>
|
||||
require("tokyonight").setup({
|
||||
on_highlights = function(hl, c)
|
||||
local prompt = "#2d3149"
|
||||
hl.TelescopeNormal = {
|
||||
bg = c.bg_dark,
|
||||
fg = c.fg_dark,
|
||||
}
|
||||
hl.TelescopeBorder = {
|
||||
bg = c.bg_dark,
|
||||
fg = c.bg_dark,
|
||||
}
|
||||
hl.TelescopePromptNormal = {
|
||||
bg = prompt,
|
||||
}
|
||||
hl.TelescopePromptBorder = {
|
||||
bg = prompt,
|
||||
fg = prompt,
|
||||
}
|
||||
hl.TelescopePromptTitle = {
|
||||
bg = prompt,
|
||||
fg = prompt,
|
||||
}
|
||||
hl.TelescopePreviewTitle = {
|
||||
bg = c.bg_dark,
|
||||
fg = c.bg_dark,
|
||||
}
|
||||
hl.TelescopeResultsTitle = {
|
||||
bg = c.bg_dark,
|
||||
fg = c.bg_dark,
|
||||
}
|
||||
end,
|
||||
})
|
||||
<
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user