Last active
June 2, 2022 16:10
-
-
Save james2doyle/529ccb75daea196f8a075eb30256d71f to your computer and use it in GitHub Desktop.
Settings for Sublime LSP Tailwind extension so that it works with twin.macro JSX/TSX props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Settings in here override those in "LSP-tailwindcss/LSP-tailwindcss.sublime-settings" | |
{ | |
"settings": { | |
"tailwindCSS.experimental.classRegex": [ | |
["classnames\\(([^)]*)\\)", "'([^']*)'"], | |
"class=\"([^\"]*)", // <div class="..." /> | |
"tw`([^`]*)", // tw`...` | |
"tw=\"([^\"]*)", // <div tw="..." /> | |
"tw={\"([^\"}]*)", // <div tw={"..."} /> | |
"tw\\.\\w+`([^`]*)", // tw.xxx`...` | |
"tw\\(.*?\\)`([^`]*)" // tw(Component)`...` | |
], | |
}, | |
// ST4 | |
"selector": "source.jsx | source.js.react | source.js | source.tsx | source.ts | source.css | source.css.tailwind | source.postcss | source.scss | source.less | text.html.vue | text.html.svelte | text.html.basic | text.html.twig | text.blade | embedding.php" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment