rename _dim_noncurrent_window to _darken_noncurrent_window

This commit is contained in:
Michael Chris Lopez
2021-10-20 17:30:26 +08:00
parent 5c8a577c5d
commit e69f8e9c04
4 changed files with 13 additions and 6 deletions

View File

@@ -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)