Coder Social home page Coder Social logo

Comments (6)

mxw avatar mxw commented on June 8, 2024

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.

mxw avatar mxw commented on June 8, 2024

(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.

ahmedelgabri avatar ahmedelgabri commented on June 8, 2024

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.

mxw avatar mxw commented on June 8, 2024

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.

Shougo avatar Shougo commented on June 8, 2024

@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.

Shougo avatar Shougo commented on June 8, 2024

This problem is deoplete problem.
It is fixed. Sorry.

from vim-jsx.

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.