How can i apply an externally loaded colorscheme from a different plugin #797
Unanswered
flobilosaurus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im trying to write a plugin which at some points in time calls
vim.cmd.colorscheme XY
. It works as expected with build in colorschemes likedarkblue
ordelek
but only partly with externally provided colorschemes liketokyonight
.For colorschemes like
tokyonight
it works after UI is fully constructed and lazy has loaded all plugins but it does not work initially as part of thesetup
function of my plugin.I tried a lot of different settings for my plugin like
event
,priority
, modifying theconfig
function to require the needed colorscheme but nothing worked so far.Only when im registering an callback to the
VimEnter
event it works but breaks stuff in other plugins like lualine.I tried to simplify the problem by just loading a non-standard version of colorscheme like
tokyonight-day
from my plugins/colorscheme.lua like so:This does not work (at least on my machine). Can someone pls enlighten me?
Beta Was this translation helpful? Give feedback.
All reactions