Fork me on GitHub

I’m playing with some syntax highlighting in vim. For the following code:

(defn my-fn 
  (let [something (build-something 1]
is it possible to assign a color to just my-fn ? Seems like it’s captured as clojureSymbol , but this will also highlight “something” and “build-something”. Thanks!

Jan K11:04:32

:syn keyword clojureFunc my-fn will color it like a core function. You can switch it to some other coloring instead of clojureFunc.


I found that using tree-sitter get’s me almost all the way to where I want to be. Thanks!