-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
bug: Rosé Pine Dawn hard to read diffview.nvim
history view
#118
Comments
Hmm, unable to reproduce this. Do you have a minimal config to replicate this? Example repro: -- DO NOT change the paths and do not remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- Set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- Bootstrap lazy.nvim
local lazypath = root .. "/plugins/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", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- Install plugins
local plugins = {
"rose-pine/neovim.nvim",
config = function()
-- Add relevant Rosé Pine config below
require("rose-pine").setup({})
end,
"sindrets/diffview.nvim",
config = true
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("rose-pine")
-- Add anything else here Here's my setup using Neovim nightly + Kitty and no plugin config: Diffview file history |
diffview.nvim
history viewdiffview.nvim
history view
Yeah looks great with nothing installed: -- DO NOT change the paths and do not remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- Set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- Bootstrap lazy.nvim
local lazypath = root .. "/plugins/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", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- Install plugins
local plugins = {
"rose-pine/neovim",
config = function()
-- Add relevant Rosé Pine config below
require("rose-pine").setup({})
end,
"sindrets/diffview.nvim",
config = true,
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons'
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("rose-pine")
-- Add anything else here How does it select the Dawn variant? Is it the default? |
OK I found the issue, I had vim.cmd("set background=light") in my rose-pine config which seemed to cause the problem.
to the README which no longer seems to be the case, will I rephrase it or delete it? |
OK, the only issue is the dark variant quickly flashes when I start neovim before changing to the Dawn variant...so I guess the light background setting did do one useful thing. Is there any way I can pass in a configuration setting to enable Dawn from start? I'm guessing at the moment the variant is changed because the theme somehow knows my terminal has a light colour theme selected? |
We may implement separate themes for each variant, e.g. At the moment, early in your vim config, set |
Also, if you are using lazy.nvim, try adding a few options to make Rosé Pine a higher priority: {
"rose-pine/neovim",
name = "rose-pine",
-- Disable lazy loading
lazy = false,
-- Increase priority
priority = 1000,
config = function()
require("rose-pine").setup()
vim.cmd.colorscheme("rose-pine")
end,
}, I will add this to the readme as well. |
I've subscribed to #98.
That causes this issue, even when added early in my config. I can live with a flicker. Which is really quite odd. |
Using https://github.com/sindrets/diffview.nvim and Rosé Pine Dawn is a bit awkward on the eye. I've tested this in Kitty and another terminal so I think it's the theme:
The yellow, the bold cyan and the white text are hard to read. Is there anything that can be done to improve this?
The text was updated successfully, but these errors were encountered: