From f4520aa5dfaf183664b587680411af83a9ce7afd Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Tue, 10 Jan 2023 09:22:55 +0100 Subject: [PATCH 1/3] feat(extra-plugins): add folke/tokyonight --- docs/plugins/02-extra-plugins.md | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/docs/plugins/02-extra-plugins.md b/docs/plugins/02-extra-plugins.md index ce554dfe..8284eb55 100644 --- a/docs/plugins/02-extra-plugins.md +++ b/docs/plugins/02-extra-plugins.md @@ -457,6 +457,57 @@ end ## Colorschemes +### [tokyonight]() + +```lua +lvim.plugins = { + "folke/tokyonight.nvim", +} +lvim.colorscheme = "tokyonight" +require("tokyonight").setup({ + on_highlights = function(hl, c) + hl.IndentBlanklineContextChar = { + fg = c.dark5, + } + hl.TSConstructor = { + fg = c.blue1, + } + hl.TSTagDelimiter = { + fg = c.dark5, + } + end, + style = "night", -- The theme comes in three styles, `storm`, a darker variant `night` and `day` + transparent = lvim.transparent_window, -- 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 for `:help nvim_set_hl` + comments = { italic = true }, + keywords = { italic = true }, + functions = {}, + variables = {}, + -- Background styles. Can be "dark", "transparent" or "normal" + sidebars = "dark", -- style for sidebars, see below + floats = "dark", -- style for floating windows + }, + -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` + sidebars = { + "qf", + "vista_kind", + "terminal", + "packer", + "spectre_panel", + "NeogitStatus", + "help", + }, + 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**. + dim_inactive = false, -- dims inactive windows + lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold + use_background = true, -- can be light/dark/auto. When auto, background will be set to vim.o.background +}) +``` + ### [lsp-colors](https://github.com/folke/lsp-colors.nvim) **lsp diagnostics highlight groups for non lsp colorschemes** From 6539c487956e92aa1a49b45382370c34828e4868 Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Tue, 10 Jan 2023 09:24:59 +0100 Subject: [PATCH 2/3] fix: add missing link --- docs/plugins/02-extra-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/02-extra-plugins.md b/docs/plugins/02-extra-plugins.md index 8284eb55..a286ca0d 100644 --- a/docs/plugins/02-extra-plugins.md +++ b/docs/plugins/02-extra-plugins.md @@ -457,7 +457,7 @@ end ## Colorschemes -### [tokyonight]() +### [tokyonight](https://github.com/folke/tokyonight.nvim) ```lua lvim.plugins = { From 6e0712c82df63cb1674c13ea096526e7af8f60d5 Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Tue, 10 Jan 2023 09:27:43 +0100 Subject: [PATCH 3/3] feat(extra-plugins): add tokyonight to versioned_docs --- .../version-1.2/plugins/02-extra-plugins.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/versioned_docs/version-1.2/plugins/02-extra-plugins.md b/versioned_docs/version-1.2/plugins/02-extra-plugins.md index ff957953..d32639f4 100644 --- a/versioned_docs/version-1.2/plugins/02-extra-plugins.md +++ b/versioned_docs/version-1.2/plugins/02-extra-plugins.md @@ -506,6 +506,57 @@ end ## Colorschemes +### [tokyonight](https://github.com/folke/tokyonight.nvim) + +```lua +lvim.plugins = { + "folke/tokyonight.nvim", +} +lvim.colorscheme = "tokyonight" +require("tokyonight").setup({ + on_highlights = function(hl, c) + hl.IndentBlanklineContextChar = { + fg = c.dark5, + } + hl.TSConstructor = { + fg = c.blue1, + } + hl.TSTagDelimiter = { + fg = c.dark5, + } + end, + style = "night", -- The theme comes in three styles, `storm`, a darker variant `night` and `day` + transparent = lvim.transparent_window, -- 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 for `:help nvim_set_hl` + comments = { italic = true }, + keywords = { italic = true }, + functions = {}, + variables = {}, + -- Background styles. Can be "dark", "transparent" or "normal" + sidebars = "dark", -- style for sidebars, see below + floats = "dark", -- style for floating windows + }, + -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` + sidebars = { + "qf", + "vista_kind", + "terminal", + "packer", + "spectre_panel", + "NeogitStatus", + "help", + }, + 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**. + dim_inactive = false, -- dims inactive windows + lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold + use_background = true, -- can be light/dark/auto. When auto, background will be set to vim.o.background +}) +``` + ### [lsp-colors](https://github.com/folke/lsp-colors.nvim) **lsp diagnostics highlight groups for non lsp colorschemes**