-
Notifications
You must be signed in to change notification settings - Fork 23
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
filetype typescriptreact on nvim doesn't highlight at all #52
Comments
I think I'll have to return to the config I had before which was looking fine, I was only trying to modernize it with this because matchit.vim was being confused by ES6 arrow function angle brackets. For what it's worth, it was the trio of these plugins: leafgarland/typescript-vim I'm currently finding that removing vim-javascript seems to be a net positive but it leaves my plain javascript files a bit bare. Still not sure what the proper setup is. |
Hi @chemzqm thanks for the update. I have now tested it. It still does not work. I have looked, and it looks like my typescriptreact buffers in neovim do not have So, that should be why it is failing to source the syntaxfile. I have also found once I manually source the syntaxfile, that many of the trailing close braces in tsx files are highlighted bright red similar to #39. I am also still confused why most users seem to still see their tsx/jsx files load up in filetype javascript. Maybe I'm on really new versions of vim/nvim? I only update every few months... |
I've followed instructions and eliminated all other javascript and typescript related plugins, but when I open my TSX files in neovim, they are 100% unhighlighted. I have to change them manually to filetype=typescript to get some sort of highlighting to appear. Although that does not look correct either. On further testing it looks like this just applies plain vim highlighting, which is very lacking.
I have tried erasing everything else from my vim configuration. the behavior is the same, so this should eliminate any other config I have from conflicting.
My vim config:
neovim
v0.5.0-553-gd8c5d122f
vim 8.2 patches up to 512
Could somebody recommend troubleshooting steps?
The text was updated successfully, but these errors were encountered: