merrickluo / lsp-tailwindcss

the lsp-mode client for tailwindcss
GNU General Public License v3.0
188 stars 21 forks source link

Specify this as an add-on server #1

Closed jsmestad closed 3 years ago

jsmestad commented 3 years ago

I need to test this, but according to the lsp-mode documentation this allows two servers to start together.

I have multiple language servers registered for language FOO. Which one will be used when opening a project?

The one with highest priority wins. lsp-clients.el predefined servers have priority -1, lower than external packages (priority 0 if unspecified). If a server is registered with :add-on? flag set to t it will be started in parallel to the other servers that are registered for the current mode.

merrickluo commented 3 years ago

thanks, I didn't think that's possible to start multiple servers in one buffer before

merrickluo commented 3 years ago

Hi @jsmestad, I managed to make it work with the current version of tailwindcss intellisense with #2, I also tried to use the add-on mode in jsx but it seems not working very well with the ts-ls server, maybe you can rebase and try that too.

NINNiT commented 3 years ago

@merrickluo @jsmestad

Hey, first of all thanks for the awesome lsp-mode client :)

Are there any news on how to get ts-ls and tailwindcss running together when using rjsx-mode? I've set lsp-tailwindcss-add-on-mode to true, however only tailwindcss is starting...

jsmestad commented 3 years ago

@XMasterNinni I have not had much time to work on this. I also don't use RJS at all day-to-day so I have no idea 🤷

merrickluo commented 3 years ago

Thanks, @XMasterNinni, I can start ts-ls with lsp-tailwindcss, but it's not working properly as I mentioned in the README, I'll try to debug and find out when I got time, and I also think we should discuss this in a new issue.

dhess commented 3 years ago

edit sorry, I'll discuss this in #7.