Comments (6)
What is "deoplete.nvim
autocompletion"?
There is nothing magical about g:jsx_ext_required
—it's just that, if that's the only config you set manually, then the behavior will be that *.js
files will have filetype set to javascript.jsx
, and will have JSX syntax/indent enabled. (The default behavior, without manual config, is to only change the filetype and enable things for *.jsx
files.)
Most likely, the plugin you're using doesn't handle filetype matching correctly in the presence of multiple filetypes (e.g., html.css.php
, or javascript.jsx
). Don't see how this is an issue here, but let me know if you are able to confirm otherwise.
from vim-jsx.
(Also, perhaps deoplete doesn't work correctly because vim-jsx's ftdetect is happening in after/
order?)
EDIT: I just updated vim-jsx to move the ftdetect outside of after/, so if you pull the latest version, this should no longer be an issue.
from vim-jsx.
What is "
deoplete.nvim
autocompletion"?
I assume you didn't check the link to the issue on that repo :), it's an asynchronous completion framework for neovim. So when I set this option it conflicts somehow with deoplete
and the autocomplete doesn't get triggered automatically.
There is nothing magical about g:jsx_ext_required—it's just that, if that's the only config you set manually, then the behavior will be that *.js files will have filetype set to javascript.jsx, and will have JSX syntax/indent enabled. (The default behavior, without manual config, is to only change the filetype and enable things for *.jsx files.)
I can't change all the files in every project to .jsx
EDIT: I just updated vim-jsx to move the ftdetect outside of after/, so if you pull the latest version, this should no longer be an issue.
This didn't fix the problem.
Most likely, the plugin you're using doesn't handle filetype matching correctly in the presence of multiple filetypes (e.g., html.css.php, or javascript.jsx). Don't see how this is an issue here, but let me know if you are able to confirm otherwise.
Will see if I can check this issue.
Anyway it's not really a big thing, but it's definitely a nice to have when you deal with JSX code inside .js
files.
from vim-jsx.
Nah—the link to the issue just doesn't really describe what deoplete is (or why this wouldn't be an issue with deoplete).
from vim-jsx.
@mxw Sorry, I think it is not vim-jsx problem. But I cannot reproduce the problem in the minimal environment.
I think @ahmedelgabri 's infromation was something wrong.
@ahmedelgabri should provide the correct information.
from vim-jsx.
This problem is deoplete problem.
It is fixed. Sorry.
from vim-jsx.
Related Issues (20)
- Incorrect highlight in *.js files HOT 1
- Comments inside XML tags are not colored properly HOT 2
- jsx indenting breaks when changing colorscheme HOT 1
- Support ES6 template literals HOT 2
- Wrong indentation when omitting semicolon
- jsx omni completion HOT 3
- the plugin isn't working for me HOT 2
- Highlighting with Template literals in JSX is broken with junegunn/rainbow_parentheses.vim HOT 3
- Vim - adding new syntax hl rule does not work inside method definitions in component class HOT 1
- Backticks with curly braces in JSX break highlighting HOT 8
- Recent update breaks YouCompleteMe file path completion HOT 2
- Indenting when pasting text HOT 1
- Plugin confuses non-React .js filetype with .jsx
- Break Tags Not Right HOT 3
- Syntax (or filetype) not working properly HOT 2
- Turn off indentation portion of the plugin. HOT 2
- Setting filetype to 'javascript.jsx' is not good idea HOT 4
- My jsx isn't highlighted HOT 2
- Broken auto indentation HOT 7
- JSX syntax highlighting breaks after running `:Vex` HOT 1
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.