Closed augustocdias closed 2 years ago
For highlighting, I just link FidgetTask
to LineNr
and FidgetTitle
to Title
. Have you defined a background color for either of these?
You should now be able to override this highlight link following resolution of #6
I tried this & still can't get rid of background.
hi! FidgetTitle ctermbg=NONE guibg=NONE
hi! FidgetTask ctermbg=NONE guibg=NONE
Tha's odd. I'm not doing anything in my plugin to define the background color. If anything, I'm setting winblend
to 100, so there really should be no background.
A few questions:
What does running :hi FidgetTask
and :hi FidgetTitle
show?
What colorscheme are you currently using?
Have you set termguicolors
? If not, does the problem still persist with set termguicolors
?
I get FidgetTitle xxx links to Title
and FidgetTask xxx links to NonText
.
I'm using tokyo-night and termguicolors
is set
What does running
:hi FidgetTask
and:hi FidgetTitle
show?
Same as @augustocdias
What colorscheme are you currently using?
I'm using https://github.com/andreypopp/vim-colors-plain
Have you set
termguicolors
? If not, does the problem still persist withset termguicolors
?
Yes, I have it set.
Issue transfered from #6, probably related:
My fidget appears darker or brighter than the defined colors on different buffers. Here are the screenshots:
Setting winblend to 0 made my popup completely transparent. Kinda odd
edit: forgot to mention, line 123 is the relevant change
window.blend
option, among other things. Does this fix everyone's transparency issues?Yup, works fine for me. Thanks @j-hui
I set winblend = 0
and the colors seem ok now. Thanks!
works for me with {'j-hui/fidget.nvim', config = function() require('fidget').setup({ window = { winblend = 0 }}) end}
For future reference if you have autocmd vimenter * hi Normal guibg=none guifg=none
in your config to make vim have a transparent background it will also cause fidget to have a black background.
For now I just matched my terminal editors background autocmd vimenter * hi Normal guibg=#202020
Is anyone still running into this? Regardless of what I've tried with highlight groups and the winblend option, the colors always appear much darker in fidget than they are in the actual theme/highlight setting. The background is transparent, however.
Nevermind this, just read the comment below.
Hi everyone!
Like @prurph, I can also often reproduce this issue (same as @FollieHiyuki posted, with dimmed highlights in some buffers, even for same instance of LSP/fidget
), so I think it should be reopened.
I've been trying to analyze it for some time now and here is my summary (it might be useful to someone):
vim.opt.termguicolors = true
is set.
(I have set this option manually and the colorscheme I'm using also sets it internally. Unless I disable both the colorscheme AND my manual option, issue persists, even with default colorscheme.)vim.opt.termguicolors = true
and fidget
setup doesn't seem to matter.sumneko_lua
LSP, while all others look as expected.clangd
, first few files always have correct fidget
highlighting, while some of the later ones have dimmed highlighting.While it also happened to me when opening just 1 Lua file with sumneko_lua
LSP, I would suggest the following as best way to initially reproduce the issue:
vim.opt.termguicolors = true
.fidget
to use default setup. (This should be easiest common ground for everyone and issue is reproducible with it.)sumneko_lua
LSP. (Hopefully, this is something that all participants here have in common.):bnext
(or whatever keymap that is for you)fidget
in the bottom right corner of the screen while browsing through files. Hopefully issue should be easily spotted.Silly me!
After reading #32, it became more apparent.
This issue actually happens when fidget
is drawn below last line in file.
This makes reproduction easy:
fidget
at the bottom of the screen (also default).fidget
should look as expected.G
to jump at the bottom of the file.zz
to center window to cursor position. This will position fidget
below last line in the file.fidget
will change colors when it finds itself below last line.Maybe linking fidget
highlights to some more persistent highlights (if there are such) by default would be better.
Still having a problem with this. Used everything below, but nothing happens. I would suggest just leaving blend as 0 in the future.
use({ "j-hui/fidget.nvim", config = function() require("fidget").setup({ window = { blend = 0, relative = "editor", }, }) end, tag = "legacy", })
Just in case anyone needs this - this is how I sorted the transparent background:
{
"j-hui/fidget.nvim",
opts = {
notification = {
window = {
winblend = 0,
},
},
},
},
Is it possible to add the possibility to add transparency or choose the color for the background? As you can see in the print bellow the background is quite different from the one from nvim.