Fork me on GitHub
#calva
<
2020-05-07
>
hindol05:05:12

The way things are going, it might as well be free for open-source work.

harishtella19:05:31

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.

sergey.shvets19:05:19

1. you can add a config to .clj-condo/config.edn and then tune it down. Not sure if you can completely disable it.

sergey.shvets19:05:08

2. You can change color scheme quite easily. See alabaster https://github.com/tonsky/vscode-theme-alabaster theme for example how.

harishtella20:05:40

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

harishtella20:05:29

That SO post shows how to inspect these tags---token names is more likely the proper name here.

sergey.shvets20:05:20

Yeah. I went the route of finding the closest theme I liked and tweaking a few symbols that I didn't.