kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

Question: Changing or disabling folded line highlighting #217

Closed RBoroot closed 2 months ago

RBoroot commented 2 months ago

Feature description

Hi! Pretty new and dont know if this is a good place to post a question so sorry if it's not.

Basically, searching the docs for a way to disable or soften the folded line highlighting and can't find anything. Gets quite messy with multiple folds.

Is it tied to the colorscheme or somewhere else i should be looking? (I noticed the highlight sometimes dissapears with different colorshemes, using catppuccin atm)

240502_18h12m37s_screenshot

Thanks for all the input and help!

Describe the solution you'd like

Softer folded line highlight. Even removing the highlight and having just the fold arrows on the left would be better...

Additional context

No response

kevinhwang91 commented 2 months ago

I can't understand what issue you are having.

RBoroot commented 2 months ago

Hi, thanks for the reply!

Im looking for a way to disable or change the color of the folded code highlight bar.

When the code is folded, its indicated by a horizontal bar. When i have many folds in the code it looks so messy and distracting.

Is there a way to disable it? Just the three dots or the arrows on the left in the status bar would be better. Or at least to soften it so it looks more like the cursor bar...

Maybe its controlled by the colorscheme or something else...

Hope it makes sense and hanks for all the help

kevinhwang91 commented 2 months ago

https://github.com/kevinhwang91/nvim-ufo?tab=readme-ov-file#customize-fold-text

You should read https://github.com/kevinhwang91/nvim-ufo/blob/a5390706f510d39951dd581f6d2a972741b3fa26/lua/ufo.lua#L162-L191