rename _dim_noncurrent_window to _darken_noncurrent_window
This commit is contained in:
@@ -58,9 +58,9 @@ Default: `v:false`. Lighten LineNr background.
|
|||||||
|
|
||||||
Default: `v:false`. Make FloatBorder more distinguishable background highlight.
|
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
|
#### g:zenflesh_lighten_noncurrent_window
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ local function generate(p, opt)
|
|||||||
normal_bg = p.bg_warm
|
normal_bg = p.bg_warm
|
||||||
elseif opt.darkness ~= nil then
|
elseif opt.darkness ~= nil then
|
||||||
local error_msg = "Unknown darkness value: " .. vim.inspect(darkness)
|
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
|
end
|
||||||
|
|
||||||
-- stylua: ignore start
|
-- stylua: ignore start
|
||||||
|
|||||||
@@ -7,9 +7,16 @@ function M.get_global_config(prefix, base_bg)
|
|||||||
comment_gui = vim.g[prefix .. "_italic_comments"] ~= false and "italic" or "NONE",
|
comment_gui = vim.g[prefix .. "_italic_comments"] ~= false and "italic" or "NONE",
|
||||||
}
|
}
|
||||||
if base_bg == "light" then
|
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", {
|
return vim.tbl_extend("keep", {
|
||||||
lightness = vim.g[prefix .. "_lightness"],
|
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_comments = vim.g[prefix .. "_darken_comments"],
|
||||||
darken_line_nr = vim.g[prefix .. "_darken_line_nr"],
|
darken_line_nr = vim.g[prefix .. "_darken_line_nr"],
|
||||||
}, common)
|
}, common)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ local function generate(p, opt)
|
|||||||
normal_bg = p.bg_dim
|
normal_bg = p.bg_dim
|
||||||
elseif opt.lightness ~= nil then
|
elseif opt.lightness ~= nil then
|
||||||
local error_msg = "Unknown lightness value: " .. vim.inspect(lightness)
|
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
|
end
|
||||||
|
|
||||||
-- stylua: ignore start
|
-- stylua: ignore start
|
||||||
@@ -381,7 +381,7 @@ local function generate(p, opt)
|
|||||||
base_specs,
|
base_specs,
|
||||||
}
|
}
|
||||||
|
|
||||||
if opt.dim_noncurrent_window then
|
if opt.darken_noncurrent_window then
|
||||||
table.insert(
|
table.insert(
|
||||||
specs,
|
specs,
|
||||||
lush(function()
|
lush(function()
|
||||||
|
|||||||
Reference in New Issue
Block a user