Closed mirsella closed 4 months ago
relevant part in fzf lua docs https://github.com/ibhagwan/fzf-lua?tab=readme-ov-file#fzf-colors
discussion about it on the fzf Lua repo https://github.com/ibhagwan/fzf-lua/discussions/1325#discussioncomment-9993832
Using this highlight group FzfLuaCursorLine = { bg = "highlight_med", fg = "text" },
for now
@mirsella
By any chance does the override you mention above work without you setting a foreground for FzfLuaCursorLine
... just only the background?
Because that highlight group links to CursorLine
according to FzfLua's documentation about highlight groups here, and CursorLine
doesn't normally have a foreground color set.
@mirsella
I think the comment you left for me here --> https://github.com/rose-pine/neovim/issues/277
Was actually in regards to this... if so can you try doing what I asked above? I'd like to try to see if this is something we can fix.
doesn't work, here is the result without fg:
yes the comment you left on the other issue i thought it was for me, because the tag @. mvllow looks like @mirsella lol, but i was answering to the message you left there not this one.
thanks for looking into it !
maybe fzf lua overwrite the fg with this whiter color. it works on dark mode tho
I don't have FzfLua installed (I use Telescope)... so I can't check necessarily what it's doing... I can only go by the documentation.
Let me look into things a bit more.
CursorLine = { bg = "highlight_med", fg = "text" },
also fix it, but it still require the fg
@mirsella
I am in the middle of working on a fix for this now hopefully.
Quick question.. do you by any chance use LazyVim?
Edited 30 seconds later: God I'm blind.... lol 😝
yes I do ! sorry should have a precised that
Yeah I figured that out.... says right in the one screenshot... shakes head 😆
Do you have any config customization you've done specifically for FzfLua, or are you just using LazyVim's default config for it?
@mirsella
Just submitted the PR that should be a good fix for this.. you can test it, by modifying your rose-pine config with the following:
{
-- 'rose-pine/neovim',
'sjclayton/rose-pine',
branch = 'fix-fzflua-invisible-selection',
-- rest of your rose-pine config below
},
Let me know how it goes.. 😄
hey ! thanks a lot ! sadly this still doesn't work (yes im on your branch with lazy.nvim) the issue only happens on light mode !
Wait what, it work when my config is
{
-- "rose-pine/neovim",
"sjclayton/rose-pine",
branch = "fix-fzflua-invisible-selection",
name = "rose-pine",
priority = 10000,
opts = {},
},
but
{
-- "rose-pine/neovim",
"sjclayton/rose-pine",
branch = "fix-fzflua-invisible-selection",
name = "rose-pine",
priority = 10000,
-- opts = {},
},
doesn't !
@mirsella
Does it work if you pass in opts
in the opts
table like normal.... that is weird, I don't know why it wouldn't work if opts
was commented out... you shouldn't have to call setup or pass config = true
.
Do you have a plugin spec for rose-pine somewhere else in your config or did you just modify the existing one you had?
ok this was really weird, my bad. i had
return {
"f-person/auto-dark-mode.nvim",
dependencies = { "rose-pine/neovim" },
opts = {
update_interval = 1000,
set_dark_mode = function()
vim.cmd("colorscheme rose-pine-moon")
end,
set_light_mode = function()
vim.cmd("colorscheme rose-pine-dawn")
end,
},
}
in another .lua config, but lazy.nvim said it was yours version that was installed and loaded, so i thought it was ok since lazy nvim said the right version was loaded.
the behaviour is weird, in lazy.nvim in this case when opts = {} was commented out the plugin.setup() wasn't called, but when settings opts = {} it would be called. guess when it wasn't called, the one in the dependencies of the other spec would be used instaed :shrug:
in any case, thanks a lot !
That explains why it wasn't working...
If you change one reference to my fork of rose-pine you have to change all other references to my fork as well or lazy doesn't know which to prioritize.
So that dependencies line would need to be { dependencies = 'sjclayton/rose-pine' },
😁
Neovim version (nvim -v)
NVIM v0.11.0-dev-358+g6a886a251
Terminal / multiplexer
konsole
Describe the bug
hello when using fzf lua most of the item listing are invisible
I'm not sure if it's something we can fix in rose pine, but I don't know where to find help otherwise, maybe this can be added as a plugin like some other in the wiki
Repro