Giter Club home page Giter Club logo

Comments (12)

chitoku-k avatar chitoku-k commented on May 11, 2024

Very sorry, this was not because of this plugin: vim-jsx-pretty works pretty fine in this case.

from vim-jsx-pretty.

fr3fou avatar fr3fou commented on May 11, 2024

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.

yuezk avatar yuezk commented on May 11, 2024

@fr3fou Disable vim-polygot and try again.

from vim-jsx-pretty.

fr3fou avatar fr3fou commented on May 11, 2024

Now I can't get syntax highlighting to appear at all / it appears but disappears after I get out of insert mode:
image

from vim-jsx-pretty.

chitoku-k avatar chitoku-k commented on May 11, 2024

It appears that your screenshot has a conflict with https://github.com/styled-components/vim-styled-components.

from vim-jsx-pretty.

fr3fou avatar fr3fou commented on May 11, 2024

hmm, disabling it seems to have fixed it, but I have yet to fix another issue -
image

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.

chitoku-k avatar chitoku-k commented on May 11, 2024

I don't think any problems are remaining, except that your code has some compilation errors.

from vim-jsx-pretty.

fr3fou avatar fr3fou commented on May 11, 2024

But it compiles fine :/ it's not giving me that error in vscode

from vim-jsx-pretty.

chitoku-k avatar chitoku-k commented on May 11, 2024

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.

fr3fou avatar fr3fou commented on May 11, 2024

Yep, it also has jsx enabled. This error only occurs in some files, not all.

from vim-jsx-pretty.

chitoku-k avatar chitoku-k commented on May 11, 2024

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.

fr3fou avatar fr3fou commented on May 11, 2024

autocmd BufNewFile,BufRead *.tsx set filetype=typescript.tsx
adding this may have just fixed it

from vim-jsx-pretty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.