From af4a9f5ce58763365999bfc558ddecd20d41f2b7 Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Fri, 9 May 2025 20:44:12 -0400 Subject: feat(tailwindcss): add detection for Phoenix projects #3831 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. --- lsp/tailwindcss.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lsp/tailwindcss.lua') diff --git a/lsp/tailwindcss.lua b/lsp/tailwindcss.lua index 1c5b3555..7f9af21a 100644 --- a/lsp/tailwindcss.lua +++ b/lsp/tailwindcss.lua @@ -117,6 +117,7 @@ return { } local fname = vim.api.nvim_buf_get_name(bufnr) root_files = util.insert_package_json(root_files, 'tailwindcss', fname) + root_files = util.insert_mix_exs(root_files, 'tailwind', fname) on_dir(vim.fs.dirname(vim.fs.find(root_files, { path = fname, upward = true })[1])) end, } -- cgit v1.2.3-70-g09d2