-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tint_background_colors does not work in neovim v0.10 #53
Comments
I just updated to Do you have a set of steps to get to this point? E.g. are you opening files after opening I would also assume that nothing in your configuration changed between the two |
The way I could repro this is
Correct, the configuration is identical. I used a prebuilt binary from the release for macos from the nightly build built from 2cd76a7 I tried disabling all plugins but tint and using a built in I was able to narrow down the issue to this minimal init.lua vim.opt.termguicolors = true
vim.cmd[[color blue]]
-- Bootstrap lazy.nvim plugin manager {{{1
local PLUGINS_LOCATION = vim.fn.expand('~/dot-files/nvim/plugged')
local lazypath = PLUGINS_LOCATION .. '/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{ 'levouh/tint.nvim', opts = { tint = -35, tint_background_colors = true } },
}, {
root = PLUGINS_LOCATION,
}) Screenshot for reference. Above nvim 0.9.5, below the nightly build. |
Just for reference, using a different minimal local target = vim.fs.joinpath("/", "tmp", "nvim-test")
local remove_paths = {
vim.fn.expand(vim.fs.joinpath(vim.fn.stdpath("data"), "site")),
vim.fn.expand(vim.fs.joinpath(vim.fn.stdpath("data"), "site", "after")),
vim.fn.expand(vim.fs.joinpath(vim.fn.stdpath("config"), "after")),
vim.fn.expand(vim.fn.stdpath("config")),
}
for _, remove_path in ipairs(remove_paths) do
vim.print("Removing " .. remove_path)
vim.opt.runtimepath:remove(remove_path)
vim.opt.packpath:remove(remove_path)
end
vim.opt.runtimepath:append(vim.fn.expand(target))
vim.print(vim.opt.runtimepath:get())
vim.opt.packpath:append(vim.fn.expand(target))
vim.print(vim.opt.packpath:get())
vim.opt.termguicolors = true
local plugin_path = vim.fs.joinpath(target, "pack", "tmp", "opt", "tint.nvim")
if vim.fn.isdirectory(plugin_path) ~= 1 then
vim.fn.system({ "git", "clone", "https://github.com/levouh/tint.nvim", plugin_path })
end
vim.cmd("packadd tint.nvim")
vim.cmd("colorscheme blue")
require("tint").setup({ tint = -75, tint_background_colors = true }) The namespaces in this minimal setup getting noted as
I get output like:
which notes that at least within the namespaces, the colors are being tinted correctly. Further, with a single window open, I can do something like:
and see it change correctly. Not 100% sure why things would act any different when calling this via autocmds, however this seems to only work when there is 1 window visible, which brings into account @antonk52 - the problem seems to arise when I am not really sure that this is something that I can solve here in this plugin as I do not want to make assumptions about people's color scheme choices, so ensuring/spoofing a setup of Let me know if this works for you in the mean time or not (making sure your colorscheme defines |
Thanks for looking into this. I can verify that setting |
@rodhash I do not use NvimTree, but if you have a way to reproduce it (an You can also try calling |
Thank you for your work!
I tried setting up this plugin and noticed that in the dev build of nvim v0.10.x the
tint_background_colors
feature does not work.To reproduce
Both have focus on the right splits, left splits are tinted.
Above: neovim v0.9.5
Below: neovim v0.10.0-dev-2210+g38bb0e1da
The text was updated successfully, but these errors were encountered: