Fork me on GitHub
#vim
<
2023-07-12
>
Dumch18:07:25

One more question about themes. I just found out that the functions have wrong collors (tried several themes with lsp/treesitter support like tokyonight, nighfox, kanagawa). Here, for example, the "vector" function is passed an argument and is still highlighted as a function. It's not true for my own function, "myf". Do you know if it's possible to fix?

Noah Bogart18:07:29

are you sure it's highlighting functions and not built-ins? what does (myf abc) render as?

Noah Bogart18:07:50

there you go, it's rendering vector as a built-in identifier, not as a "function"

Noah Bogart18:07:32

so even if you had (let [vector [1 2 3]] (prn vector)), it's gonna make vector that bold red color in the let block and the prn call

Dumch18:07:16

So every function* that could be used without require is highlighted this way

Dumch18:07:28

Now it makes sense, thank you!

Noah Bogart18:07:07

glad to help!