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 zen-mode.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.9.4
Operating system/version
MacOS 14.2.1
Describe the bug
When commit c1dea35 added default to the highlight command that sets the background color (here), it caused the window.backdrop parameter to be ignored, as zen-mode.setup is called first without a user config, which sets the default highlight, meaning that when the user calls setup, the highlight group has already been defined, and the value for window.backdrop is ignored.
the window backdrop should respect the configuration file
Repro
-- 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",
"folke/zen-mode.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)
0.9.4
Operating system/version
MacOS 14.2.1
Describe the bug
When commit c1dea35 added
default
to thehighlight
command that sets the background color (here), it caused thewindow.backdrop
parameter to be ignored, aszen-mode.setup
is called first without a user config, which sets the default highlight, meaning that when the user callssetup
, the highlight group has already been defined, and the value forwindow.backdrop
is ignored.Steps To Reproduce
:lua require("zen-mode").setup({window = {backdrop = 1}})
:ZenMode
Expected Behavior
the window backdrop should respect the configuration file
Repro
The text was updated successfully, but these errors were encountered: