fix(nvim): ensure neotree bg highlights are not modified

This commit is contained in:
Price Hiller 2023-04-11 12:24:11 -05:00
parent acff254b36
commit 3bac7e11c3
No known key found for this signature in database

View File

@ -707,7 +707,24 @@ lazy.setup({
event = "VeryLazy",
config = function()
require("tint").setup({
highlight_ignore_patterns = { "WinSeparator" },
highlight_ignore_patterns = {
"WinSeparator",
},
window_ignore_function = function(winid)
local bufid = vim.api.nvim_win_get_buf(winid)
local ignoredFiletypes = { "DiffviewFiles", "DiffviewFileHistory", "neo-tree" }
local ignoredBuftypes = { "terminal" }
local isDiff = vim.api.nvim_win_get_option(winid, "diff")
local isFloating = vim.api.nvim_win_get_config(winid).relative ~= ""
local isIgnoredBuftype =
vim.tbl_contains(ignoredBuftypes, vim.api.nvim_buf_get_option(bufid, "buftype"))
local isIgnoredFiletype =
vim.tbl_contains(ignoredFiletypes, vim.api.nvim_buf_get_option(bufid, "filetype"))
return isDiff or isFloating or isIgnoredBuftype or isIgnoredFiletype
end,
tint = -30,
saturation = 0.8,
})