You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
delay the setting of terminal_colors, this results in the vim.g.terminal_color_0 not being set when the ColorScheme event is triggered.
Unfortunately my plugin currently relies on these values. I know tokyonight provides some APIs to let me get its color directly, but I have some other themes, so I am not inclined to use fixed colors.
Considering that the this function should be only run once, is a synchronous setup also acceptable?
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0
Operating system/version
Linux dragon 6.9.7-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 27 18:11:45 UTC 2024 x86_64 GNU/Linux
Describe the bug
here:
tokyonight.nvim/lua/tokyonight/theme.lua
Line 26 in 0a84c2d
delay the setting of terminal_colors, this results in the vim.g.terminal_color_0 not being set when the ColorScheme event is triggered.
Unfortunately my plugin currently relies on these values. I know tokyonight provides some APIs to let me get its color directly, but I have some other themes, so I am not inclined to use fixed colors.
Considering that the this function should be only run once, is a synchronous setup also acceptable?
Steps To Reproduce
Expected Behavior
vim.g.terminal_color_0 != nil
Repro
The text was updated successfully, but these errors were encountered: