From 68320b33ab729ba0dce6370869a6e69d39ba930c Mon Sep 17 00:00:00 2001 From: folke Date: Mon, 5 Sep 2022 19:48:50 +0000 Subject: [PATCH] chore(docs): auto generate vimdoc --- doc/tokyonight.txt | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/doc/tokyonight.txt b/doc/tokyonight.txt index 86ff2c0..1492a00 100644 --- a/doc/tokyonight.txt +++ b/doc/tokyonight.txt @@ -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 + + +> + 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, + }) <