Open hersi97 opened 1 month ago
I'm not sure I understand your problem.
In the first screenshot, you are in the opts
function scope, and that is highlighted correctly.
In the second screenshot, you are in the hooks.register
function scope, and that is highlighted correctly too.
Everything looks correct.
Alright, yes, the highlights are correct. I was confused, since I didn't know it would highlight the current scope with the first highlight color in the config. I played around with it a bit and it's clear now, thanks!
Slight off-topic question, is there a way to tell ibl to highlight the current scope with a different color than the first one set in config.indent.highlight
?
Ah I understand your problem now. Setting a list of highlights for scope is currently broken #860.
You can still set a different color from the normal highlights though.
Problem
Hi! I'm sorry if this is intended behavior, but I figured I should ask.
If I have my cursor under a function scope, I don't get highlights for the scope, however if I have the cursor under a block under the function scope (if block, for block, function block), I do get highlights.
Interestingly the show_start and show_end underlining does not have this problem.
Steps to reproduce
Expected behavior
I expect the indent line highlight to be active while the cursor is anywhere under the scope.
Neovim version (nvim -v)
NVIM v0.10.0