This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-15
Channels
- # architecture (5)
- # babashka (34)
- # beginners (72)
- # calva (42)
- # cherry (31)
- # cider (14)
- # clojure (27)
- # clojure-europe (11)
- # clojure-norway (17)
- # clojure-uk (1)
- # clojurescript (25)
- # community-development (13)
- # conjure (1)
- # core-async (11)
- # datascript (18)
- # datomic (11)
- # emacs (12)
- # fulcro (10)
- # integrant (5)
- # introduce-yourself (3)
- # jobs (8)
- # juxt (2)
- # malli (22)
- # off-topic (11)
- # pathom (18)
- # polylith (62)
- # rdf (18)
- # reagent (8)
- # releases (1)
- # shadow-cljs (35)
- # sql (3)
- # squint (141)
- # tools-deps (12)
- # vim (4)
- # xtdb (4)
For the super small subset of folks who use coc.nvim
and tailwind
in their Clojure/Script projects and want autocompletion/docs I found a way to do it. You want to use this plugin and coc extension: https://github.com/yaegassy/coc-tailwindcss3 and in your coc-settings.json
want to add:
"tailwindCSS.experimental.classRegex": [
":class\\s+\"([^\"]*)\""
],
"tailwindCSS.includeLanguages": {
"clojure": "html",
}
Right now, this will only work when using the [:h1 {:class "text-3xl font-extrabold mt-6"} "Hello World!"]
style. I would appreciate it if anyone can help figure out the regex to get it working for the [:h1.text-3xl.font-extrabold.mt-6 "Hello World!"]
shortened style.💡 2
"tailwindCSS.includeLanguages": {
"clojure": "html"
},
"[clojure]": {
"editor.snippetSuggestions": "bottom",
"tailwindCSS.experimental.classRegex": [
[
":\\w+([^\\s]*)",
"\\.([^\\.]*)"
],
]
},
I'm a bit lost when it comes to regex but I've tweaked this snippet originally based on Ruby’s haml syntax and it seems to work