tokyonight.nvim
tokyonight.nvim copied to clipboard
bug: Neotree tabs highlight is black
Did you check docs and existing issues?
- [X] I have read all the tokyonight.nvim docs
- [X] I have searched the existing issues of tokyonight.nvim
- [X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0-dev-4d52b0cf
Operating system/version
Macos sonoma
Describe the bug
I tried forking this repo and defining NeoTreeTabInactive, but according to :verbose highlight NeoTreeTabInactive
_editor.lua is setting this highlight from lua. Not sure if i did something wrong
Steps To Reproduce
Install theme & neotree, add multiple sources and open neotree
Expected Behavior
A highlight defined for this group: NeoTreeTabInactive. This was mentioned here https://github.com/folke/tokyonight.nvim/issues/326 but no resolution was provided
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
"folke/tokyonight.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
This works with my setup but probably wants a proper fix:
vim.api.nvim_set_hl(0, "NeoTreeTabInactive", { link = "BufferInactive" })