Olical / conjure

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile, Python and more!)
https://conjure.oli.me.uk
The Unlicense
1.77k stars 108 forks source link

clj-kondo linter showing up in repl buffer #428

Closed esciafardini closed 2 years ago

esciafardini commented 2 years ago

I recently updated all my packages and this started happening:

Screen Shot 2022-10-08 at 11 12 02 PM

You can see clj-kondo error indicators next to REPL output

Olical commented 2 years ago

Duplicate of https://github.com/Olical/conjure/issues/427

And this is actually expected, it should've always been like this. Neovim introduced a change which broke the HUD highlighting entirely which meant we needed to fix the original bug which was basically only HALF loading the HUD. Which meant you had highlighting but other plugins didn't kick in (like LSP, clj-kondo, etc).

So now there's a fix to properly load the buffer and trigger all autocmds but it also engages any plugins relevant for the buffer. I can not stop that from my side, in the issue linked someone put together a small autocmd they use to disable LSP in the log buffer.

Personally, I like having linting everywhere, even if there's a little visual noise sometimes.

Olical commented 2 years ago

Added this to the FAQ https://github.com/Olical/conjure/wiki/Frequently-asked-questions#my-log-buffer-is-full-of-diagnostic-warnings-and-errors--a-plugin-is-running-in-the-log-buffer-and-i-dont-want-it-to

Because I think it will be frequently asked for a while. Closing for now, please reopen if you have further issues or need more help.

esciafardini commented 2 years ago

Thanks for the quick and informative response as always!