question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for other JavaScript filetypes like javascript.jsx

See original GitHub issue

It took me nearly 20mins to figure out why the JavaScript completion was not working at all when I realized that I set my JavaScript ft=javascript.jsx & it seems that in order for it to work it ft must be javascript only. It will be nice to support other filetypes too.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marallacommented, Apr 6, 2017

This commit #94 should fix the problem. Please update and try it again.

1reaction
marallacommented, Apr 6, 2017

You can use the option g:completor_filetype_map to add support for javascript.jsx:

" In vimrc
let g:completor_filetype_map = {'javascript.jsx': 'javascript'}
Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Add External JavaScript Files in React
Since React doesn't support the <script> tag in Component , here are a few ways of appending JS files to specific components.
Read more >
Introducing JSX - React
It is called JSX, and it is a syntax extension to JavaScript. We recommend using it with React to describe what the UI...
Read more >
React JS project - treat *.js files as JSX #3112 - GitHub
I have a project created with "create-react-app". Each JS file in it is actually JSX. I would like to try ViteJS to develop...
Read more >
javascript - ReactJS - .JS vs .JSX - Stack Overflow
I have read about JSX files and my understanding is that they just let you write HTML tags within your JavaScript . But...
Read more >
Enable Emmet support for JSX in Visual Studio Code | React
There is a small tweak you need to do on your VS Code to enable Emmet support for JSX. This makes typing HTML...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found