Skip to content

Commit

Permalink
docs: fix autocomplete commands
Browse files Browse the repository at this point in the history
Fix #25
  • Loading branch information
gregberge committed Dec 25, 2023
1 parent d9be6b1 commit 1fb84db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions website/pages/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Steps } from "nextra/components";
npm i react-twc
```


### Setup autocompletion in your editor

You can enable Tailwind autocompletion inside `twc` using the steps below:
Expand All @@ -26,7 +25,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below:
{
"tailwindCSS.experimental.classRegex": [
"twc\\.[^`]+`([^`]*)`",
"twc\\(.*?\\).*?`([^)]*)",
"twc\\(.*?\\).*?`([^`]*)",
["twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
["twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
]
Expand All @@ -47,7 +46,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below:
experimental = {
classRegex = {
"twc\\.[^`]+`([^`]*)`",
"twc\\(.*?\\).*?`([^)]*)",
"twc\\(.*?\\).*?`([^`]*)",
{ "twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)" },
{ "twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)" }
},
Expand All @@ -71,7 +70,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below:
"experimental": {
"classRegex": [
"twc\\.[^`]+`([^`]*)`",
"twc\\(.*?\\).*?`([^)]*)",
"twc\\(.*?\\).*?`([^`]*)",
["twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
["twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
]
Expand Down

0 comments on commit 1fb84db

Please sign in to comment.