conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
orestis 2021-03-23T08:24:38.007200Z

Is there a way to keep syntax highlighting in the Conjure log but avoid clj-kondo giving me lint errors? Not a huge deal but a bit distracting.

borkdude 2021-03-23T08:35:55.007500Z

@orestis is the Conjure log a clojure file?

orestis 2021-03-23T08:36:16.007800Z

It's a cljc buffer, in Clojure mode.

orestis 2021-03-23T08:36:37.008400Z

But I think it should be an .edn buffer instead. Not sure if Vim provides such a distinction.

borkdude 2021-03-23T08:37:06.008900Z

You can turn off linting for specific files using a .clj-kondo config: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#include-and-exclude-files-from-the-output

orestis 2021-03-23T08:38:31.009600Z

I'm not sure it's even a real file 🙂

Olical 2021-03-23T09:18:02.011800Z

It's not a real files, it's a scratch buffer that half pretends to be Clojure so all of you editing tools work as expected in there. I think the best route is configuring kondo to ignore it (thanks, @borkdude!)

orestis 2021-03-23T14:19:05.012400Z

Oh I guess clj-kondo needs just a regex for the filename as reported by the editor, not an actual filesystem glob pattern...

borkdude 2021-03-23T14:21:38.012600Z

true

borkdude 2021-03-23T14:21:49.012800Z

it's an unescaped regex