cursive

danielcompton 2025-08-01T02:20:13.967239Z

Is it possible to make the clj-kondo warnings less intrusive? The full yellow highlight is quite a lot. I prefered clojure-extras version where it just added a squiggly underline, especially as often the issue is just a warning, not an error

🎯 4
cfleming 2025-08-05T19:58:44.641559Z

Yes, it is, and it does that if a) the head form isn't a symbol or keyword or b) the form is a container other than a list (map, vector, set).

🙏 1
2025-08-01T20:10:35.229769Z

+1 for undersquiggle

2025-08-01T20:10:54.580119Z

But I must say, +1 for kondo integration

souenzzo 2025-08-04T10:14:56.586279Z

+1 on this I recently changed the theme, and the yellow warns that I used to love, became squiggly white-ish underlines Could you suggest a manual so we can customize these behaviors?

borkdude 2025-08-04T11:12:37.944199Z

Check how it looks in emacs. I think I may have raised this with clojure-lsp and/or clojure-extras as well and they took it to heart Here is what I did in clj-kondo.lsp (lsp server with only clj-kondo for VScode, etc) to fix this for VSCode: https://github.com/clj-kondo/clj-kondo.lsp/blob/b5ccb8fae925dfc75ca6e799b834fe846a2f7776/server/src/clj_kondo/lsp_server/impl/server.clj#L82-L88

borkdude 2025-08-04T11:14:52.955049Z

cc @cfleming

cfleming 2025-08-04T11:19:58.606589Z

Interesting, thanks. Currently I'm just marking the range returned by Kondo itself, which spans the whole form.

cfleming 2025-08-04T11:20:52.119689Z

But it is pretty shouty

borkdude 2025-08-04T11:21:09.409679Z

yes, it spans the whole form, but you don't have to highlight the whole form, you can just do whatever you want with that range info. Emacs does the highlighting I showed above by default so it was never an issue for me with the default ranges

👍 1
borkdude 2025-08-04T11:23:22.383539Z

here's what clojure-extras did: https://github.com/brcosta/clj-extras-plugin/commit/e387a975223dc64c44507a44080c38575b6549c6

cfleming 2025-08-05T00:45:15.058879Z

Ok, this is what it looks like now (marks the head element of lists if it's a symbol or keyword, and just the opening bracket otherwise), but I'm having difficulty getting IntelliJ to show a squiggle rather than the yellow background. As far as I can tell I'm doing the right thing, and also doing what extras used to do. I'll keep looking at it.

cfleming 2025-08-05T01:10:39.255369Z

There, much more peaceful...

cfleming 2025-08-05T01:13:54.161269Z

https://github.com/cursive-ide/cursive/issues/3050

borkdude 2025-08-05T06:52:52.802439Z

Nice. Was it not possible to squiggle the opening paren? This is fine too