-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Describe the bug
If the brace {
is not at the beginning of the line, the chunk is not correctly shown.
Consider the following code:
{
description = "foobar";
# Nixpkgs / NixOS version to use.
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs =
{
arg1,
arg2,
...
}:
{
something = "foo";
};
}
Placing the cursor on line 5: looks like this (no chunk indicated):
Placing it on line 10 looks like this (works correctly):
I would expect the chunk to be shown in both cases. Not having the brace at the start of the line is common in multiple languages, I have only verified the bug with Nix yet.
To Reproduce
Steps to reproduce the behavior:
- Open snipped above in editor
- Place cursor on line 5 (
inputs =
) - Place cursor on line 10 (
{
belowoutputs =
) - Compare visual
Expected behavior
Chunk is indicated in both cases
Screenshots
see above
Additional context
Metadata
Metadata
Assignees
Labels
No labels