dense-analysis / dense-analysis/ale

Allow different highlighting for indentation related whitespace

Open
#3,704 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

Currently I'm using the following overrides for Ale's highlights ([link to dotfiles](https://github.com/ismay/dotfiles/tree/453ea28f1efbb9149f7756afc4ffd608ab80613b) with the settings for more details):

```vim
hi ALEError cterm=undercurl ctermul=red
hi ALEWarning cterm=undercurl ctermul=yellow
```

Now these work great, but they highlighted something that I thought would be a nice potential feature for ale. If you'll look at the screenshot below:

Screenshot 2021-04-23 at 10 01 46

you can see that the highlight is also highlighting the whitespace in front of the tag. I was wondering if it'd be possible for Ale to detect indentation and allow setting a different highlight for that. Say `ALEErrorIndentation`, `ALEWarningIndentation` or something of that nature. That way I could disable the undercurl there and not be as distracted by the highlighted indentation. Which could look like, for example, this:

Screenshot 2021-04-23 at 10 01 46

Or alternatively, I could also imagine having a setting that allows you to prevent Ale from highlighting indentation related whitespace at all. I'm not sure what the technical possibilities are and whether it's in scope, but for readability I do think it would be nice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.