Support for jsx
See original GitHub issuethx for the lsp, works great. Is there any support for jsx or future plans. here is my config for reference
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
require "lspconfig/configs".emmet_ls = {
default_config = {
cmd = {"emmet-ls", "--stdio"},
filetypes = {"html", "css", "javascript", "javascriptreact", "javascript.jsx"},
root_dir = require "lspconfig".util.root_pattern(".git", vim.fn.getcwd())
}
}
require "lspconfig".emmet_ls.setup {
on_attach = require "nvim-lsp".common_on_attach
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:19
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Documentation - JSX - TypeScript
TypeScript supports embedding, type checking, and compiling JSX directly to JavaScript. Basic usage. In order to use JSX you must do two things....
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 >Support for the experimental syntax 'jsx' isn't currently enabled ...
Support for the experimental syntax 'jsx' isn't currently enabled after creating a TypeScript react project and installing an NPM package with ...
Read more >Support for the experimental syntax 'jsx' isn't currently enabled
Just create a .babelrc file in the root of your project and add: { "presets": ["@babel/preset-env", "@babel/preset-react"] }.
Read more >babel/preset-react
Though the JSX spec allows this, it is disabled by default since React's JSX does not currently have support for it. pure. boolean...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have created a new package based on this repo named
emmet-language-server
which fix jsx issue. It also includes the changes of the pr that is opened in the current repo (fix snippet expanding). Till this repo gets life again you can install it withnpm i -g @kozer/emmet-language-server
Check the repo hereand tsx 😃