You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scope highlighting doesn't have the expected behavior with certain formatting styles.
This is the expected behavior:
I think these are also all okay, but I am not sure about the exact scopes here:
This is wrong:
As shown in the first few pictures, this highlighting can be fixed by changing the formatting a bit, but hopefully the code should still work correctly in this case.
Steps to reproduce
nvim --clean -u min-init.lua keeps giving errors when I run it with the minimal config file, so I don't have the minimal config, but I don't think the issue is hard to reproduce.
I didn't think it was the same problem because the indent guides looked different, but looking at it again I think that is just because of smart_cap_indent. I think you are right that this is a duplicate, so I will close this issue and make a comment in the other issue instead. I think I might have a way to solve this after current_indent is committed (I would use that the calculation loop and drawing loop are different then).
Problem
Scope highlighting doesn't have the expected behavior with certain formatting styles.
This is the expected behavior:
I think these are also all okay, but I am not sure about the exact scopes here:
This is wrong:
As shown in the first few pictures, this highlighting can be fixed by changing the formatting a bit, but hopefully the code should still work correctly in this case.
Steps to reproduce
nvim --clean -u min-init.lua
keeps giving errors when I run it with the minimal config file, so I don't have the minimal config, but I don't think the issue is hard to reproduce.Make a
c
file with:Move the cursor around different lines and look at the scope highlights.
Expected behavior
In this picture the scope should highlight the second indentation guide to the left of the cursor.
Neovim version (nvim -v)
NVIM v0.10.0-dev-1451+g20dd9f3a2-Homebrew
The text was updated successfully, but these errors were encountered: