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

Match removes syntax colors #89

Closed
aalvarado opened this issue Jun 11, 2018 · 3 comments
Closed

Match removes syntax colors #89

aalvarado opened this issue Jun 11, 2018 · 3 comments

Comments

@aalvarado
Copy link
Contributor

Calling the function for MatchParen when using the plugin Matchup removes all syntax colors in XML like markup:

For example, React code:

screen shot 2018-06-11 at 11 22 51 am

Using this seems a bit better:
call s:h('MatchParen', s:none, s:subtle, [s:attrs.underline])

screen shot 2018-06-11 at 11 23 31 am

  • mvim
  • 8.1
  • OS: High Sierra
  • Terminal/Terminal Emulator/VTE: n/a
  • TERM environment variable: n/a
@aalvarado
Copy link
Contributor Author

but might not work well with single parens ... not sure if there's a way to know which is which

@aalvarado
Copy link
Contributor Author

this is prob more for the matchup author...

ref: andymass/vim-matchup#30

andymass added a commit to andymass/vim-matchup that referenced this issue Jul 27, 2018
    hi MatchWord gui=bold cterm=bold guibg=darkgrey

re #30, dracula/vim#89
@andymass
Copy link

FYI- you can now highlight words separately from parens:

call s:h('MatchWord', s:none, s:subtle, [s:attrs.underline])

Plus there are groups MatchParenCur and MatchWordCur for the match under the cursor (as opposed to corresponding matches). By default they are linked to MatchParen so it's totally optional.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants