Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Getting tw`` to autocomplete #34

@nkabbara

Description

@nkabbara

Hi Guys,

I'm trying to get autocompletion to work on something like
<RegisterForm css={tw`bg-gray-100`}

I added the following to coc-settings.json, but I don't think I'm understanding how to config this plugin correctly.

"tailwindCSS.headwind.classRegex": {
"javascriptreact": "(?:\bclassXame\s*=\s*\"\'[\"\'])|(?:{tw\s*([_a-zA-Z0-9\\s\\-\\:\\/]*))"
}

Is this supposed to activate tailwind autocompletion for patterns like tw`tailwind-stuff` ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions