diff --git a/doc/zenbones.md b/doc/zenbones.md index fcf400b..0df20ae 100644 --- a/doc/zenbones.md +++ b/doc/zenbones.md @@ -58,9 +58,9 @@ Default: `v:false`. Lighten LineNr background. Default: `v:false`. Make FloatBorder more distinguishable background highlight. -#### g:zenbones_dim_noncurrent_window +#### g:zenbones_darken_noncurrent_window -Default: `v:false`. Make non-current window background dimmer than _Normal_. +Default: `v:false`. Make non-current window background darker than _Normal_. #### g:zenflesh_lighten_noncurrent_window diff --git a/lua/zenbones/specs/dark.lua b/lua/zenbones/specs/dark.lua index c609bc0..2bf5366 100644 --- a/lua/zenbones/specs/dark.lua +++ b/lua/zenbones/specs/dark.lua @@ -9,7 +9,7 @@ local function generate(p, opt) normal_bg = p.bg_warm elseif opt.darkness ~= nil then local error_msg = "Unknown darkness value: " .. vim.inspect(darkness) - vim.notify(error_msg, vim.log.levels.WARN) + vim.notify(error_msg, vim.log.levels.WARN, { title = "zenbones" }) end -- stylua: ignore start diff --git a/lua/zenbones/specs/init.lua b/lua/zenbones/specs/init.lua index a446d62..6ac22fc 100644 --- a/lua/zenbones/specs/init.lua +++ b/lua/zenbones/specs/init.lua @@ -7,9 +7,16 @@ function M.get_global_config(prefix, base_bg) comment_gui = vim.g[prefix .. "_italic_comments"] ~= false and "italic" or "NONE", } if base_bg == "light" then + if vim.g[prefix .. "_dim_noncurrent_window"] then + vim.notify( + prefix .. "_dim_noncurrent_window is replaced by " .. prefix .. "_darken_noncurrent_window", + vim.log.levels.ERROR, + { title = "zenbones" } + ) + end return vim.tbl_extend("keep", { lightness = vim.g[prefix .. "_lightness"], - dim_noncurrent_window = vim.g[prefix .. "_dim_noncurrent_window"], + darken_noncurrent_window = vim.g[prefix .. "_darken_noncurrent_window"], darken_comments = vim.g[prefix .. "_darken_comments"], darken_line_nr = vim.g[prefix .. "_darken_line_nr"], }, common) diff --git a/lua/zenbones/specs/light.lua b/lua/zenbones/specs/light.lua index a5976db..60b7387 100644 --- a/lua/zenbones/specs/light.lua +++ b/lua/zenbones/specs/light.lua @@ -9,7 +9,7 @@ local function generate(p, opt) normal_bg = p.bg_dim elseif opt.lightness ~= nil then local error_msg = "Unknown lightness value: " .. vim.inspect(lightness) - vim.notify(error_msg, vim.log.levels.WARN) + vim.notify(error_msg, vim.log.levels.WARN, { title = "zenbones" }) end -- stylua: ignore start @@ -381,7 +381,7 @@ local function generate(p, opt) base_specs, } - if opt.dim_noncurrent_window then + if opt.darken_noncurrent_window then table.insert( specs, lush(function()