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

[feature request: inverse matches #35

Closed
quantum-booty opened this issue May 11, 2022 · 3 comments
Closed

[feature request: inverse matches #35

quantum-booty opened this issue May 11, 2022 · 3 comments

Comments

@quantum-booty
Copy link

quantum-booty commented May 11, 2022

In https://github.com/srcery-colors/srcery-vim there is an option to inverse the colour of matches and match parenthesis of treesitter-highlight module or a / search:
image
image

Could you please add a similar feature to onenord? Because I think this can improve visibility of these matches, as you see its currently a bit hard to see without inverse colours.
image

@rmehri01
Copy link
Owner

Hi, I think your images aren't showing up for me but I think I get the idea. Something like this?

image

It doesn't look as nice for visual mode though since right now there is no foreground:

image

Would you want visual/selection to look the same as the match paren one (dark blue on yellow) or do you have something else in mind?

@quantum-booty
Copy link
Author

quantum-booty commented May 12, 2022

Yeah this is exactly I am looking for! How can I reverse the visual selection?
Edit:
This config works:

require('onenord').setup({
    borders = true, -- Split window borders
    bold = {
        functions = true,
    },
    custom_highlights = {
        TSDefinitionUsage = { style = "reverse" },
        MatchParen = { style = "reverse" },
        Visual = { style = "reverse" },
    },
})

@rmehri01
Copy link
Owner

Yup, I'll add the inversed match paren as an option but I think that the visual one may be less common so I'll leave it out for now!

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

No branches or pull requests

2 participants