Description
What version of VS Code are you using?
LazyVim
What version of Tailwind CSS IntelliSense are you using?
LSP version is 0.0.14 (installed with Mason)
What version of Tailwind CSS are you using?
3.3.5
What package manager are you using?
pnpm
What operating system are you using?
MacOS Sonoma 14.2
Tailwind config
import type { Config } from "tailwindcss";
export default {
content: [""],
theme: {
extend: {},
},
plugins: [],
} satisfies Config;
VS Code settings
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
"eslint.workingDirectories": [
{ "pattern": "apps/*/" },
{ "pattern": "packages/*/" }
],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"tailwindCSS.experimental.configFile": "./packages/config/tailwind/index.ts",
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
}
}
Reproduction URL
https://github.com/leoyhk/tailwind-lsp-not-working/tree/main
Describe your issue
IDE: Lazyvim
LSP Version: 0.0.14 (Installed with Mason)
Bug observed: LSP does not work when "tailwindCSS.experimental.configFile": "./packages/config/tailwind/index.ts", is active in .vscode/setting.json
Expected behavior: LSP provides suggestions and auto completion
How to Recreate:
- Open the dir with nvim (i'm using the Lazyvim distribution), open any .tsx file. LSP does not provide any TailwindCSS related suggestions when typing the classnames.
- Enter .vscode/setting.json and comment "tailwindCSS.experimental.configFile": "./packages/config/tailwind/index.ts"
- Restart nvim and open any .tsx file, the LSP should work normally
P.S. I'm searching for a solution / config that could make LSP work in lazyvim/nvim without changing the project settings (since it is a team project), i.e. i shall not treat commenting the line as the solution.
LspInfo shows tailwindcss is up and running, but no suggestions are given while typing