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
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0-dev-2914+g4ec8fd43b
Operating system/version
Fedora Linux 39
Describe the bug
When using the default colorscheme, if Lazy installs a new plugin, the default colorscheme is overriden
Steps To Reproduce
Don't use a colorscheme
Add a new plugin
Restart Neovim
Expected Behavior
Lazy.nvim installs the plugins without changing the default colorscheme
Even in the lazy config, if I use install.colorscheme = {} or install.colorscheme = { 'default' }, it still uses the vim colorscheme instead of default, for some reason
Repro
-- DO NOT change the paths and don't remove the colorscheme-- This comment is N/A for this issue since the colorscheme IS relevant to the issue itself.localroot=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= {
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
The text was updated successfully, but these errors were encountered:
Lazy does not override the colorscheme at all when set to default.
I just did some testing and it seems that Neovim's new default colorscheme highlights are loaded right before VimEnter, so the default colors before that are simply incorrect.
Nothing lazy can do about this.
Relevant code is:
init_highlight in main.c
Even explicly calling colorscheme default doesn't work as long as init_highlight wasn't called.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-2914+g4ec8fd43b
Operating system/version
Fedora Linux 39
Describe the bug
When using the default colorscheme, if Lazy installs a new plugin, the default colorscheme is overriden
Steps To Reproduce
Expected Behavior
Even in the lazy config, if I use
install.colorscheme = {}
orinstall.colorscheme = { 'default' }
, it still uses thevim
colorscheme instead ofdefault
, for some reasonRepro
The text was updated successfully, but these errors were encountered: