Comments (12)
Very sorry, this was not because of this plugin: vim-jsx-pretty works pretty fine in this case.
from vim-jsx-pretty.
How did you manage to fix this? Are you using typescript-vim
or vim-polygot
? I've been struggling with the same problem.
from vim-jsx-pretty.
@fr3fou Disable vim-polygot
and try again.
from vim-jsx-pretty.
Now I can't get syntax highlighting to appear at all / it appears but disappears after I get out of insert mode:
from vim-jsx-pretty.
It appears that your screenshot has a conflict with https://github.com/styled-components/vim-styled-components.
from vim-jsx-pretty.
hmm, disabling it seems to have fixed it, but I have yet to fix another issue -
I don't know what filetype I should be using for typescript and tsx, right now it's set as typescript
but both it and typescript.jsx
/ typescript.tsx
give me this error smh
from vim-jsx-pretty.
I don't think any problems are remaining, except that your code has some compilation errors.
from vim-jsx-pretty.
But it compiles fine :/ it's not giving me that error in vscode
from vim-jsx-pretty.
It's not because of this syntax plugin but of your plugin that runs tsserver in background. Does your project have tsconfig.json?
from vim-jsx-pretty.
Yep, it also has jsx enabled. This error only occurs in some files, not all.
from vim-jsx-pretty.
That's weird... I can't guess which plugin you are using, but assuming it's coc-tsserver, how about this issue: neoclide/coc-tsserver#35?
from vim-jsx-pretty.
autocmd BufNewFile,BufRead *.tsx set filetype=typescript.tsx
adding this may have just fixed it
from vim-jsx-pretty.
Related Issues (20)
- [Question] Using Emmet with vim-jsx-pretty HOT 2
- typescript: misaligned indentation when using function shorthand with generic HOT 4
- typescript: misaligned indentation for `=` in template literal HOT 4
- Not matching JSX with dot separator HOT 1
- Great documentation HOT 1
- Dealing with tags interspersed in blocks of text
- Typescript indent failing for multiline properties
- jsxTagName should be same as htmlTagName
- Different formatting than expected HOT 1
- Function declaration's closing bracket highlighted as error HOT 3
- Highlight type arguments after jsxComponentName
- Highlighting issue with colorscheme HOT 2
- Closing tag doesn't get colored - Gruvbox HOT 2
- [Feature] Highlight when call function HOT 2
- highlighting fails on closing parens HOT 3
- Matchit support has problems with unclosed tags
- Weird highlight using vim-polygot HOT 1
- Broken .tsx highlighting for arrow functions using generics
- Problem syntax HOT 2
- Is there a reason why Line Comments are being redefined?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-jsx-pretty.