nvim window highlight
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
-- Dim inactive windows for better focus
|
||||
"levouh/tint.nvim",
|
||||
config = function()
|
||||
require("tint").setup({
|
||||
tint = -45, -- Darken inactive windows (negative = darker, positive = lighter)
|
||||
saturation = 0.6, -- Desaturate inactive windows (0 = grayscale, 1 = full color)
|
||||
transforms = require("tint").transforms.SATURATE_TINT, -- Apply both saturation and tint
|
||||
tint_background_colors = true, -- Apply tint to background colors
|
||||
highlight_ignore_patterns = { "WinSeparator", "Status.*" }, -- Don't tint these highlights
|
||||
window_ignore_function = function(winid)
|
||||
local bufid = vim.api.nvim_win_get_buf(winid)
|
||||
local buftype = vim.bo[bufid].buftype
|
||||
local filetype = vim.bo[bufid].filetype
|
||||
|
||||
-- Don't tint special buffers
|
||||
return buftype == "terminal"
|
||||
or filetype == "neo-tree"
|
||||
or filetype == "TelescopePrompt"
|
||||
or filetype == "toggleterm"
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user