diff options
| author | Joshua Sattler <34030048+jsattler@users.noreply.github.com> | 2025-07-30 03:02:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 18:02:51 -0700 |
| commit | 3db16ceeea947517f0dc1404c24dcb5ab0c91d26 (patch) | |
| tree | 91b12a042973dd5b450866a0dff9fd2e429d5661 | |
| parent | fix(vue_ls): nil references in tsserverRequest #3977 (diff) | |
| download | nvim-lspconfig-2.4.0.tar nvim-lspconfig-2.4.0.tar.gz nvim-lspconfig-2.4.0.tar.bz2 nvim-lspconfig-2.4.0.tar.lz nvim-lspconfig-2.4.0.tar.xz nvim-lspconfig-2.4.0.tar.zst nvim-lspconfig-2.4.0.zip | |
fix(tailwindcss): use ".git" root marker fallback for tailwind v4 #3980v2.4.0
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.
| -rw-r--r-- | lsp/tailwindcss.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lsp/tailwindcss.lua b/lsp/tailwindcss.lua index cba3b642..8eb067a6 100644 --- a/lsp/tailwindcss.lua +++ b/lsp/tailwindcss.lua @@ -123,6 +123,8 @@ return { 'theme/static_src/tailwind.config.mjs', 'theme/static_src/tailwind.config.ts', 'theme/static_src/postcss.config.js', + -- Fallback for tailwind v4, where tailwind.config.* is not required anymore + '.git', } local fname = vim.api.nvim_buf_get_name(bufnr) root_files = util.insert_package_json(root_files, 'tailwindcss', fname) |
