This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-07
Channels
- # announcements (11)
- # architecture (2)
- # babashka (84)
- # beginners (226)
- # calva (7)
- # chlorine-clover (4)
- # cider (29)
- # clara (17)
- # clj-kondo (23)
- # cljs-dev (58)
- # cljsrn (60)
- # clojure (172)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-italy (6)
- # clojure-nl (8)
- # clojure-spec (4)
- # clojure-uk (22)
- # clojurescript (44)
- # conjure (39)
- # core-async (64)
- # cursive (76)
- # data-science (15)
- # duct (3)
- # emacs (2)
- # events (5)
- # fulcro (30)
- # helix (4)
- # jackdaw (5)
- # juxt (1)
- # kaocha (1)
- # leiningen (4)
- # off-topic (9)
- # pathom (22)
- # re-frame (9)
- # reagent (33)
- # reitit (3)
- # ring (10)
- # ring-swagger (2)
- # shadow-cljs (192)
- # spacemacs (27)
- # specter (2)
- # sql (59)
- # vim (2)
Hello all, I’m new to Calva (coming from Atom), and there are a couple of things I’d like to do. I can’t figure them out on my own however. 1. Is there a way I can disable linting provided by clj-kondo? It seems I can’t turn that extension off while Calva is on. 2. Is there a way I can disable or edit the syntax highlighting of Calva? Calva colors Clojure keywords red it seems. I would prefer to stick to the default set by my Atom-like color scheme. Could use a clue on either of these. Thanks.
1. you can add a config to .clj-condo/config.edn and then tune it down. Not sure if you can completely disable it.
2. You can change color scheme quite easily. See alabaster https://github.com/tonsky/vscode-theme-alabaster theme for example how.
Thanks for the helpp @U4EFBUCUE I solved my second issue through this SO post. https://stackoverflow.com/questions/50422080/how-to-change-a-color-of-a-syntax-in-visual-studio-code I added this bitt to my setttings.json
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "constant.keyword.clojure",
"settings": {
"foreground": "#D19A66"
}
},
{
"scope": "variable.other.constant.clojure",
"settings": {
"foreground": "#D19A66"
}
}
]
}
It seems like those keywords in clojure get tagged differently when Calva is on, and therefore triggers different highlighting. I am here manually setting the color for the tag that Calva adds, variable.other.constant.clojure
That SO post shows how to inspect these tags---token names is more likely the proper name here.
Yeah. I went the route of finding the closest theme I liked and tweaking a few symbols that I didn't.