Before setting up your editor, see Project setup
on how to configure clj-kondo
for your project. TL;DR: this involves creating
a .clj-kondo
directory in the root of your project.
For integrating with Emacs, see flycheck-clj-kondo.
This section is for Vim 8+ or NeoVim
.vimrc
, add:
let g:ale_linters = {'clojure': ['clj-kondo']}
to only have clj-kondo as the linter. add:
let g:ale_linters = {'clojure': ['clj-kondo', 'joker']}
to have both, with clj-kondo being preferred.
.vimrc
and it should start working.This section assumes that you are already using Cursive.
Repeat the below steps for the file types Clojure (.clj
), ClojureScript (.cljs
)
and CLJC (.cljc
).
+
and choose the <custom>
template.clj-kondo <filetype>
(where <filetype>
is one of
Clojure, ClojureScript or CLJC).clj-kondo
.--lint $FilePath$ --cache
.$FileDir$
.Create output file from stdout
$FILE_PATH$:$LINE$:$COLUMN$: $MESSAGE$
.Can you improve this documentation? These fine people already did:
Michiel Borkent & Rahul DeEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close