aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/tailwindcss.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix(tailwindcss): dynamic registration for `didWatchChangedFiles` #4206David2025-11-201-0/+7
| | | | Not having this was leading to the lsp falling back to watching *all* files, and causes nasty side effects such as https://github.com/DopplerHQ/cli/issues/502
* chore: add type annotation for configsIgor2025-08-181-0/+1
|
* fix(tailwindcss): use ".git" root marker fallback for tailwind v4 #3980v2.4.0Joshua Sattler2025-07-291-0/+2
| | | | Since tailwind v4 it is not required to have a tailwind.config.* in the project 1. The current configuration is preventing the LSP to attach to the configured file types in cases when no tailwind.config.* or none of the other markers (package.json etc.) is present. This commit fixes this limitation by providing .git as a fallback and by documenting this limitation.
* feat(tailwindcss): root_dir for rails/phoenix #3935Stuart Fraser2025-07-031-9/+1
| | | | | The location of the config in Rails and Phoenix does not represent the root of the project. We can look inside mix.lock and Gemfile.lock for the existence of tailwind, which guarantees that it's the root.
* feat(tailwind): add "postcss.config.js" root marker #3884ndlrfz2025-06-021-0/+1
| | | | The new `django-tailwind` package comes with the Tailwind CSS 4 by default, which migrated to the `postcss.config.js`.
* feat(tailwindcss): detect tailwind in rails django phoenix #3834David Bernheisel2025-05-221-0/+14
| | | | | This is copying some additions that tailwind-tools.nvim makes. There are web frameworks such as Rails, Django, and older Phoenix that places tailwind config files in asset folders.
* feat(tailwindcss): map elixir and heex ft to phoenix-heex #3854David Bernheisel2025-05-221-1/+3
| | | | | | | tailwind-intellisense won't activate unless the filetype is detected as an HTML-based file. Elixir `.ex` files can have `~H` sigils with HEEX syntax inside or `~E` sigils with eelixir syntax. It's also typical to have `.html.heex` files entirely of HEEX syntax. Both of these are recognized in Elixir's tree-sitter injections.scm
* refactor: generalize insert_package_json() #3833Justin M. Keyes2025-05-101-1/+1
|
* feat(tailwindcss): add detection for Phoenix projects #3831David Bernheisel2025-05-091-0/+1
| | | | | | | | | | | | Enhance root directory detection for the latest versions of TailwindCSS v4, which no longer require tailwind.config.* or postcss.config.*. For Phoenix projects, they are typically generated or add Tailwind installed via https://github.com/phoenixframework/tailwind which will now be detected by scanning the mix.lock file for the included package. Phoenix projects that install tailwindcss via package.json should still work.
* fix(tailwindcss): improve root dir detection for tailwind v4 #3765Maksim Terpilovskii2025-04-231-10/+16
|
* feat(tailwind): add `vim.lsp.config` supportSasha2025-04-211-0/+116