Comments (7)
I used your repository in my environment and tried it. It worked fine with your regex in my environment.
coc-tailwind3-purescript-headwind.mp4
from coc-tailwindcss3.
I have never used purescript
so I don't know. headwind feature was ported from heybourn/headwind
. https://github.com/heybourn/headwind
You may want to debug the regex checks with this. https://github.com/heybourn/headwind#debugging-custom-regex
from coc-tailwindcss3.
I'm not sure if I configure tailwindCSS.headwind.classRegex
properly or if it's not working.
Let's say I want to test it by configuring html
wrongly. It should not work for standard html syntax. But the change has no affect.
"tailwindCSS.enable": true,
"tailwindCSS.headwind.classRegex": {
"html": "\\bwrong\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']"
},
Is configuring tailwindCSS.headwind.classRegex
working for you?
from coc-tailwindcss3.
I checked the no matching setting in html
. The setting itself is reflected correctly because it is not sorted.
DEMO (mp4):
- I'm trying the default settings first.
underline text-3xl font-bold
->text-3xl font-bold underline
- I am trying with a non matching setting in html.
underline text-3xl font-bold
->underline text-3xl font-bold
coc-tailwindcss3-headwind-class-regex.mp4
from coc-tailwindcss3.
Thanks a lot for looking into it and providing the screencast. I'm not sure how to progress from here.
I don't want to waste your time, but if you feel the urge, you can try out to modidy className
in this example project. I assume since the extension is regex based, no PureScript knowledge or setup is necessary.
But at this point I assume it's more likely that the issue would be related to setup or configuration on my end. So don't feel bother about this issue and free to close it.
from coc-tailwindcss3.
Added headwind regex logs feature. #10
Here is a demo in your repository.
coc-tailwindcss3-andys8-repo-headwind-log.mp4
This issue is closed as it works fine in my environment. 🙇
from coc-tailwindcss3.
Hey, thanks to your help I got it sorted out.
First I was wondering why you're testing with sorting classes (tailwindCSS.headwind.sortTailwindClasses
) while I was hoping for linting errors for duplicates. With that I figured that headwind
is supposed to be sorting.
Then I tried also configuring tailwindCSS.experimental.classRegex
and change tailwindCSS.includeLanguages
which I saw in your screencast. Not sure why I do have to set it to a value like javascriptreact
(because it's not correct) but a value seems to be necessary.
Configuring all of these will then work nicely.
"tailwindCSS.enable": true,
"tailwindCSS.experimental.classRegex": [
"\\bclassName\\s*:\\s*\\\"([_a-zA-Z0-9\\s\\-\\:\\/]+)\\\""
],
"tailwindCSS.headwind.classRegex": {
"purescript": "\\bclassName\\s*:\\s*\\\"([_a-zA-Z0-9\\s\\-\\:\\/]+)\\\""
},
"tailwindCSS.includeLanguages": {
"purescript": "javascriptreact"
}
Changing tailwindCSS.experimental.classRegex
is not specific to a language. So I don't think the tailwind language server or coc-tailwindcss3
can be changed to work out of the box for PureScript. But with that configuration it's possible to have a working setup. Thank you, again :)
from coc-tailwindcss3.
Related Issues (20)
- Clojure/ClojureScript support? HOT 3
- Recommendations are not ordered properly HOT 2
- Failed installing HOT 1
- Question: enable for typescriptreact HOT 3
- Highlight Color via vim-css-color HOT 5
- Adding a hyphen breaks autocomplete HOT 2
- Support autocompletion in `tw` tag function from twin.macro HOT 3
- Support twind HOT 6
- Headwind error: rustywind: 1: empty: not found HOT 1
- Improve sorting classes HOT 1
- How to use the configuration options HOT 8
- Highlighted colours? HOT 3
- Not launching when I enter an HTML file HOT 8
- Is it possible to support attributify like unocss? HOT 2
- Headwind runOnSave not working with "coc.preferences.formatOnSaveFiletypes" HOT 1
- How to force start in monorepo HOT 1
- it's not work that in monorepo HOT 4
- Headwind integration HOT 5
- It doesn't recognize SvelteKit project HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-tailwindcss3.