liquidz / vim-iced

Clojure Interactive Development Environment for Vim8/Neovim
https://liquidz.github.io/vim-iced/
MIT License
516 stars 35 forks source link

Does the scope of clj-kondo support include displaying linting results? #355

Open karolinepauls opened 3 years ago

karolinepauls commented 3 years ago

I followed the steps in https://liquidz.github.io/vim-iced/vim-iced.html#g%3Aiced_enable_clj_kondo_analysis. I set:

let g:iced_enable_clj_kondo_analysis = v:true
let g:iced_enable_clj_kondo_local_analysis = v:true

I was expecting to see linting errors when saving Clojure files with syntax errors. That didn't happen. I could see the cached files though. It looks like clj-kondo is only used internally for better IcedDefJump, etc.

Is it true that running clj-kondo as a linter isn't and will never be a goal and users should configure linters though other plugins?

liquidz commented 3 years ago

@karolinepauls

Is it true that running clj-kondo as a linter isn't and will never be a goal and users should configure linters though other plugins?

Right. We had a linting functionality, but it is removed because linting is not a role of vim-iced I think. #159

I'm using coc.nvim for linting with clj-kondo. https://github.com/clj-kondo/clj-kondo/blob/master/doc/editor-integration.md#cocnvim

karolinepauls commented 3 years ago

Thanks for your answer.

I must be a dino for still using Syntastic.

I'd like to add a note to the docs that the kondo integration is an internal thing and not a user-facing linter, for this reason the task is still valid after the question has been answered.

liquidz commented 2 years ago

Feel free to reopen this issue :)

D00mch commented 2 years ago

May be it should be mirrored to the docs because it wasn't obvious. I set up clj-kondo with this instruction from clj-kondo, but before I spend like 15 minutes trying to figure it out with vim-iced only.

liquidz commented 2 years ago

@Liverm0r Thanks for your suggestion!

May be it should be mirrored to the docs because it wasn't obvious.

Indeed. I'll add documents for this. If you have a time, you can submit a PR if you like :)