AlessandroYorba / Despacio

A Vim colorscheme
121 stars 11 forks source link

What javascript syntax are you using? #12

Closed Nicktho closed 7 years ago

AlessandroYorba commented 7 years ago

this: https://github.com/jelera/vim-javascript-syntax

Nicktho commented 7 years ago

thanks

Nicktho commented 7 years ago

Sorry @AlessandroYorba, were you the one who took the screenshot?

This is me with the theme + syntax, I'm missing a few highlights.

screen shot 2017-03-21 at 3 04 05 pm

AlessandroYorba commented 7 years ago

@Nicktho Very strange indeed. Looks like the HL colors for "Function, Identifiers, Special, and Operators are missing from your screenshot. However, it looks like the JS syntax plugin did pick up the PreProc highlight "createPositionalPseudo". Here's mine

With Theme and with JS syntax: screen shot 2017-03-21 at 12 15 27 pm

Here's a screenshot without JS syntax: screen shot 2017-03-21 at 12 17 57 pm

BTW, are you using the terminal or gui?

Nicktho commented 7 years ago

I'm on the terminal, and using neovim. I might do some digging into highlight groups.

AlessandroYorba commented 7 years ago

@Nicktho

Show me a screenshot of a html file. I wrote despacio so that HTML highlights reference the Function Keyword highlight. So if something is overwriting the highlights that will also tell us.

Also, from an open JS file and from the vim command line type: highlight Function ctermfg=223 guifg=#ffdfaf

If the above command adds the color back to the function keywords that tells me something is overwriting the highlight at runtime

Nicktho commented 7 years ago

before highlight Function ctermfg=223 guifg=#ffdfaf:

screen shot 2017-03-22 at 9 14 42 am

after:

screen shot 2017-03-22 at 9 15 39 am

html (default syntax) screen shot 2017-03-22 at 9 18 07 am

Nicktho commented 7 years ago

I took the following screenshot from :h syntax so it appears the colours are applied correctly to the highlight groups, its just the syntax is not working correctly.

screen shot 2017-03-22 at 9 38 40 am

Nicktho commented 7 years ago

Nevermind, calling syntax enable after changing the color scheme worked. Thanks for your time Alessandro.

AlessandroYorba commented 7 years ago

That's great! Hope you enjoy despacio now!