Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,6 @@ Intelligent Tailwind CSS tooling for [coc.nvim](https://github.com/neoclide/coc.

> scoped packages

## Prepare

Create tailwindCSS configuration in your project.

> this extension need the configuration exists in your project

```bash
npx tailwindcss init
```

## TIPS

`coc-tailwindcss3` may not work for some projects such as monorepo or depending on how Vim/Neovim is started. Try one of the following methods

### Open the tailwindcss configuration file

Open the `tailwind.config.js` or `tailwind.config.cjs` file that exists in your project.

### workspaceFolders

`workspaceFolders` may not have been properly recognized. To make coc.nvim recognize `workspaceFolders` correctly, you can set `b:coc_root_patterns` in .vimrc/init.vim

**Example for html filetype**:

```vim
au FileType html let b:coc_root_patterns = ['.git', '.env', 'tailwind.config.js', 'tailwind.config.cjs']
```

Also, `workspaceFolders` can be adjusted manually. Set the directory where `tailwind.config.js` or `tailwind.config.cjs` exists.

See the coc.nvim wiki for more information.

- <https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders>

## Configuration options

- `tailwindCSS.enable`: Enable coc-tailwindcss3 extension, default: `true`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"typescript": "^5.3.3"
},
"activationEvents": [
"workspaceContains:**/?(tailwind|tailwind.config|tailwind.*.config|tailwind.config.*).?(js|cjs|ts|mjs)"
"*"
],
"contributes": {
"configuration": {
Expand Down