mirror of https://github.com/sgoudham/nvim.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
432 B
Lua
16 lines
432 B
Lua
local M = {}
|
|
|
|
local cp = require("catppuccin.core.palettes.init").get_palette()
|
|
local cnf = require("catppuccin.config").options
|
|
local dim_percentage = cnf.dim_inactive.percentage
|
|
local ucolors = require("catppuccin.utils.colors")
|
|
|
|
function M.dim()
|
|
if cnf.dim_inactive.shade == "dark" then
|
|
return ucolors.darken(cp.base, dim_percentage, cp.mantle)
|
|
end
|
|
return ucolors.lighten(cp.surface0, dim_percentage, cp.base)
|
|
end
|
|
|
|
return M
|