Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting for numhl highlights #2637

Merged
merged 4 commits into from
Jul 29, 2019
Merged

Conversation

delphinus
Copy link
Contributor

@delphinus delphinus commented Jul 10, 2019

Neovim has numhl option for signs. This PR adds highlights for this.

neovim/neovim@bddcbbb
related: airblade/vim-gitgutter#632

スクリーンショット 0001-07-10 10 51 02

  • Added new highlights ALE(Error|StyleError|Warning|StyleWarning|Info)LineNr.
    • All are linked to CursorLineNr.

TODO

I will adds these later!

  • tests
    • This diff has no logic to tests
  • README
    • It seems need not to describe this in README.
  • doc

@delphinus
Copy link
Contributor Author

It may be good to change each highlight in relation to sign's one. But the default highlights should have links to CursorLineNr, and then users should change them in their vimrc's, I think.

スクリーンショット 0001-07-10 10 57 04

" these setting are used in the screenshot above.
hi ALEErrorSignLineNr guifg=#bf616a guibg=#52050c gui=bold
hi ALEStyleErrorSignLineNr guifg=#bf616a guibg=#52050c gui=bold
hi ALEWarningSignLineNr guifg=#ebcb8b guibg=#432d00 gui=bold
hi ALEStyleWarningSignLineNr guifg=#ebcb8b guibg=#432d00 gui=bold
hi ALEInfoSignLineNr guifg=#a3be8c guibg=#163601 gui=bold

@delphinus delphinus marked this pull request as ready for review July 11, 2019 11:42
@delphinus
Copy link
Contributor Author

Fixed. Please review this @w0rp

Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. 👍

Apologies for the delay. I've been busy for a few weeks.

@w0rp w0rp merged commit d1c5676 into dense-analysis:master Jul 29, 2019
@delphinus delphinus deleted the feature/numhl branch July 30, 2019 06:20
@blahgeek
Copy link
Contributor

blahgeek commented Aug 3, 2019

How can I disable this feature if I don't want the line numbers to be highlighted (bold) ?

@blahgeek
Copy link
Contributor

blahgeek commented Aug 4, 2019

Some more details:

With cursorline set,

Before this commit

2 is bold, 3 is not

2019-08-04_14-03-27

After this commit

Both 2 and 3 is bold
2019-08-04_14-03-13

If I set "hi link ALEErrorSignLineNr LineNr"

Neither 2 or 3 is bold
2019-08-04_14-02-50


There's not way to get the original behavior. Can we please have a setting for this change?

@w0rp
Copy link
Member

w0rp commented Sep 1, 2019

If other's are interested, have a look at @blahgeek's PR. I'll try to get a modified version of that merged soon.

suoto pushed a commit to suoto/ale that referenced this pull request Sep 11, 2019
* Add setting for numhl highlights
* Add doc for numhl feature
timlag1305 pushed a commit to timlag1305/ale that referenced this pull request Nov 5, 2019
* Add setting for numhl highlights
* Add doc for numhl feature
alt-romes added a commit to alt-romes/ale that referenced this pull request Aug 3, 2023
In dense-analysis#2637, support for numhl highlights was added for nvim.

In the meantime, vim added support for numhl highlights in patch 8.2.3874.

This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
alt-romes added a commit to alt-romes/ale that referenced this pull request Aug 3, 2023
In dense-analysis#2637, support for numhl highlights was added for nvim.

In the meantime, vim added support for numhl highlights in patch 8.2.3874.

This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
w0rp pushed a commit that referenced this pull request Aug 5, 2023
In #2637, support for numhl highlights was added for nvim.

In the meantime, vim added support for numhl highlights in patch 8.2.3874.

This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
mnikulin pushed a commit to mnikulin/ale that referenced this pull request Nov 12, 2023
In dense-analysis#2637, support for numhl highlights was added for nvim.

In the meantime, vim added support for numhl highlights in patch 8.2.3874.

This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants