From d25e7b1a6dbfbcc9103e092631b0d3f0962aab1c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 2 Jul 2024 14:57:46 +0200 Subject: [PATCH] fix(neo-tree): tabs. Fixes #513 --- lua/tokyonight/groups/neo-tree.lua | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lua/tokyonight/groups/neo-tree.lua b/lua/tokyonight/groups/neo-tree.lua index 5ae7187f..187b2d9a 100644 --- a/lua/tokyonight/groups/neo-tree.lua +++ b/lua/tokyonight/groups/neo-tree.lua @@ -1,16 +1,23 @@ +local Util = require("tokyonight.util") + local M = {} ---@type tokyonight.HighlightsFn function M.get(c, opts) + local dark = Util.blend(c.bg_sidebar, 0.8, opts.style == "day" and c.blue or "#000000") -- stylua: ignore return { - NeoTreeNormal = { fg = c.fg_sidebar, bg = c.bg_sidebar }, - NeoTreeNormalNC = { fg = c.fg_sidebar, bg = c.bg_sidebar }, - NeoTreeDimText = { fg = c.fg_gutter }, - NeoTreeGitModified = { fg = c.orange }, - NeoTreeGitUntracked = { fg = c.magenta }, - NeoTreeGitStaged = { fg = c.green1 }, - NeoTreeFileName = { fg = c.fg_sidebar }, + NeoTreeDimText = { fg = c.fg_gutter }, + NeoTreeFileName = { fg = c.fg_sidebar }, + NeoTreeGitModified = { fg = c.orange }, + NeoTreeGitStaged = { fg = c.green1 }, + NeoTreeGitUntracked = { fg = c.magenta }, + NeoTreeNormal = { fg = c.fg_sidebar, bg = c.bg_sidebar }, + NeoTreeNormalNC = { fg = c.fg_sidebar, bg = c.bg_sidebar }, + NeoTreeTabActive = { fg = c.blue, bg = c.bg_dark, bold = true }, + NeoTreeTabInactive = { fg = c.dark3, bg = dark }, + NeoTreeTabSeparatorActive = { fg = c.blue, bg = c.bg_dark }, + NeoTreeTabSeparatorInactive= { fg = c.bg, bg = dark }, } end