olrtg / emmet-language-server

A language server for emmet.io
https://www.npmjs.com/package/@olrtg/emmet-language-server
MIT License
268 stars 8 forks source link

Change `className` to `class` when expanding div class names #29

Closed Braayy closed 7 months ago

Braayy commented 8 months ago

Hi! I'm using SolidJS on my project, but the default behavior of emmet is to expand .text-center to <div className="text-center"></div>. The problem is that SolidJS does not use className, only class.

I've search how to change this behavior, and found this: How to change emmet expanding "className" to "class" in VSCode for JSX/TSX?.

So i tried putting this configuration on Helix:

[language-server.emmet-ls]
command = "emmet-language-server"
config = { includeLanguages = { typescriptreact = "html" } }
args = ["--stdio"]

But nothing changed, even if a use:

[language-server.emmet-ls]
command = "emmet-language-server"
config = { emmet = { includeLanguages = { typescriptreact = "html" } } }
args = ["--stdio"]

The config field is sent to initializationOptions of onInitialize.

Idk if the problem is with this lsp, emmet-helper or emmet itself.

olrtg commented 8 months ago

Hey! includeLanguages key doesn't exist in the server configuration. That's probably an integration that they have on the editor side of things, not on the server. Good question though. I'll see what I can do later!