Closed rcmoret closed 1 day ago
Providing a full LSP log is 🐐 thank you!
This is because the language ID of the document being sent by the LSP is eruby
. We handle erb
by default but not eruby
. You can customize the tailwindCSS.includeLanguages
setting which will map a language ID that we're told a document is to a specific language we support.
For example, in VSCode's settings I would do something like this:
{
"tailwindCSS.includeLanguages": {
"eruby": "erb"
}
}
I'm not sure how you set settings in Neovim's LSP support but it is listed in your screenshot so I assume it's editable. That should take care of it and completions should start working.
Thanks. I'll take care of that tomorrow!
What version of VS Code are you using?
n/a using NeoVim v0.10.0
What version of Tailwind CSS IntelliSense are you using?
v0.0.18
What version of Tailwind CSS are you using?
v3.3.3
What package manager are you using?
yarn
What operating system are you using?
macOS
Tailwind config
VS Code settings
Reproduction URL https://github.com/rcmoret/tailwind-example
Describe your issue
Here's the situation...if I have an erb template (eg app/views/dashboard/sample.html for example), I get suggestions. So, I know I'm on the right track, but if I look at an erb file (eg app/views/dashboard/sample.html.erb or app/components/card_component.html.erb I get nothing. I updated the lsp log level and edited an html file and an erb file, and here's what I saw...both are making requests to the tailwind lsp client but only the html is receiving 'results'.
Shortened / slightly edited version of the logs
Link to the full log transcript: lsp.log