Replies: 4 comments 2 replies
-
I can confirm that version 0.9.10 broke this plugin when it comes to Phoenix/HEEX templates. Reverting back to 0.9.9 got me back to a version that works as expected. |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is related… I'm trying to get EDIT: never mind, I was just missing this from my VS Code settings: "files.associations": {
"*.html.jinja": "html"
} |
Beta Was this translation helpful? Give feedback.
-
Hey @igorgue. Not sure what's going on here exactly so going to convert this to a discussion for now until an issue (if there is one) can be identified. I have a very limited knowledge of Neovim but with the config you shared I was able to get everything working fine, which makes me think this may be a configuration issue: Here's my full init.vim
If you're able to share a project repository that exhibits the issue and/or your full Neovim configuration perhaps that could provide some clues as to why it's not working for you? |
Beta Was this translation helpful? Give feedback.
-
I've used the same config as @bradlc and tailwindcss says it's running in a heex file, but nothing is working. Any more info on a fix for this? tailwindcss = {
filetypes = {
"css",
"scss",
"sass",
"html",
"heex",
"elixir",
"eruby",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"rust",
"svelte",
},
settings = {
experimental = {
classRegex = {
[[class= "([^"]*)]],
[[class: "([^"]*)]],
'~H""".*class="([^"]*)".*"""',
'~F""".*class="([^"]*)".*"""',
},
},
includeLanguages = {
typescript = "javascript",
typescriptreact = "javascript",
["html-eex"] = "html",
["phoenix-heex"] = "html",
heex = "html",
eelixir = "html",
elixir = "html",
elm = "html",
erb = "html",
svelte = "html",
rust = "html",
},
tailwindCSS = {
validate = true,
lint = {
cssConflict = "error",
invalidApply = "error",
invalidConfigPath = "error",
invalidScreen = "error",
invalidTailwindDirective = "error",
invalidVariant = "error",
recommendedVariantOrder = "error"
},
},
},
handlers = {
["tailwindcss/getConfiguration"] = function(_, _, params, _, bufnr, _)
vim.lsp.buf_notify(bufnr, "tailwindcss/getConfigurationResponse", { _id = params._id })
end,
},
init_options = {
userLanguages = {
elixir = "phoenix-heex",
eelixir = "phoenix-heex",
heex = "phoenix-heex",
},
},
}, |
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS IntelliSense are you using?
0.0.12
What version of Tailwind CSS are you using?
3.2.6
What package manager are you using?
npm
What operating system are you using?
Linux
Tailwind config
Neovim settings
Reproduction URL
Run with that config on a new Elixir or Rust project (with Yew), running either is a hasle, I'm unsure how it can help, I'm sure all custom languages are broken.
** Instructions (instead) **
Used to work, I believe as of last week.
Describe your issue
Autocompletion don't work in custom files, html and css works (and I bet JS but I don't use JavaScript), currently on an Elixir and a Rust project, I demoed this extension I believe last week so I suspect is the latest version who broke it.
Beta Was this translation helpful? Give feedback.
All reactions