Fork me on GitHub
#calva
<
2023-06-06
>
Dustin Getz11:06:21

I'd like to try to make a custom minimalist-dark theme that is optimized for Clojure. Has anyone done this before and can point me to the source code examples for what I need to do? I've read the VSCode docs about the basics but I was missing some big picture concept about how actual Clojure is parsed and mapped to the underlying vscode primitives

pez12:06:32

There is an inspector in VS Code that probably is useful for this. Developer: Inspect Editor Tokens and Scopes. It will show you the Textmate Scopes that Calva assigns to things. Maybe the tests for this is the best place to look for this: https://github.com/BetterThanTomorrow/calva/blob/published/src/calva-fmt/atom-language-clojure/spec/clojure-spec.coffee#L1 The inspector will also show you semantic tokens, which clojure-lsp assigns as a result of its (or clj-kondo’s) analysis.

Dustin Getz12:06:29

those tests are excellent, thank you