Fork me on GitHub
#vim
<
2022-03-30
>
athomasoriginal22:03:04

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

(defn my-fn 
  []
  (let [something (build-something 1]
    true))
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.

athomasoriginal21:04:03

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