Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Tailwind CSS extra is broken #816

Closed
3 tasks done
dphaener opened this issue May 24, 2023 · 3 comments
Closed
3 tasks done

bug: Tailwind CSS extra is broken #816

dphaener opened this issue May 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@dphaener
Copy link

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0-dev-216+g4720f4379-Homebrew

Operating system/version

MacOS Ventura 13.4

Describe the bug

After the most recent update the Tailwind CSS extra plugin stopped working. Specifically this line was throwing an error: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/lang/tailwind.lua#L15, because opts.filetypes_exclude is nil and not a table.

It seems as if this is looking for the { "markdown" } excludes setting but that does not exist in the opts table that is passed to the function. I copied that config over to my local setup and just replaced opts.filetypes_exclude with the literal { "markdown" } and everything now functions as expected.

Steps To Reproduce

  1. Update to the latest LazyVim.
  2. Enable the tailwindcss extra.
  3. Open any file that is included in the tailwind css filetypes (css, html, etc).
  4. See the error message

Expected Behavior

The extra should function without any errors.

Repro

No response

@dphaener dphaener added the bug Something isn't working label May 24, 2023
@folke
Copy link
Collaborator

folke commented May 24, 2023

It works in my setup as it should. Did you change any tailwindcss settings?

@folke
Copy link
Collaborator

folke commented May 24, 2023

I added a nil check, but it shouldn't be needed.

@dphaener
Copy link
Author

No I didn't change any tailwind settings at all. Not sure what the deal is. 🤷

ofrades pushed a commit to ofrades/LazyVim that referenced this issue May 30, 2023
joshmedeski pushed a commit to joshmedeski/LazyVim that referenced this issue Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants