-
Notifications
You must be signed in to change notification settings - Fork 142
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
typescript override logic broken in Neovim master #184
Comments
[email protected] has been released a few days ago and it has keywords highlighting broken as well. Thank you for the fix! |
I've figured out a bit more inconsistencies and to me the issue occur when I open the Also I've found a couple of more syntax rules that got broken:
|
Thanks! Seems like it's (past) time to file an issue against neovim. I'm guessing that I never did this myself, or I probably would have linked it to this issue. I did a couple of quick searches and didn't find a matching open issue. They can help track down the root cause, e.g. is this just inherited from upstream Vim patches (and so they'd pop the bug or a PR up another level), or is it something that broke just in nvim. |
So I did some more research to try and figure out what's going on here. Neither vim nor neovim seem to actually define Either way, this plugin seems to be what's actually mapping |
Unfortunately the vim syntax override logic appears to have recently broken relative to neovim
master
circa neovim/neovim@2786d96.With this plugin loaded (confirmed via starting neovim with
-V20vimlog
and searching the results)typescriptReserved
is now linking to neovim's (terrible) default ofError
instead of the (sensible) default ofKeyword
used by typescript-vim. I haven't sussed out exactly why, since some digging suggests that neovim's had that bad default for some time. I do note that neovim's typescript defs were recently updated via cherry pick without having pulled in the associated patches. It's not clear whether that's the cause of the behavior change, or just a red herring.Filing this to some extent as an FYI. After some digging, it's not yet clear to me where the best place to solve the override issue lies – e.g. with neovim itself, or here in typescript-vim.
As an immediate workaround, I've just manually slammed
hi link typescriptReserved Keyword
into my .vimrc to staunch the eye-bleeding.The text was updated successfully, but these errors were encountered: