Liking cljdoc? Tell your friends :D

vis-lang-clojure

Clojure tools for Vis: zprint and cljfmt formatting, clj-kondo lint, reader syntax checks, test runs and an nREPL.

Install

vis-agent extension install blockether/vis-lang-clojure --subdirectory extension --global --trust

Install the Clojure CLI and put it and a JDK on PATH. The first tool call fetches the library from Clojars. Syntax checks and repairs do not need the CLI or the JDK. Use Vis 0.2.53 or later for toolchain grants.

Use

ToolPurpose
clj.format_codeFormat files or a snippet. Set is_written=True to write the changes.
clj.lint_codeRun clj-kondo and report reflection warnings as failures.
clj.run_testsRun project tests. Set coverage=True to get coverage for Lazytest.
clj.repl_startStart a project nREPL for this session.
clj.repl_statusCheck if the project's REPL is active.
clj.repl_connectAttach to an nREPL that is already active.
clj.repl_evalEvaluate Clojure in the active REPL.
clj.repl_stopStop a managed nREPL or detach from an external nREPL.
clj.run_tests(["test/app/core_test.clj::adds"])

Edit hooks check changed files and repair structural errors when safe. See the Clojure toolchain reference for supported test runners, syntax checks and classpath details. Results follow the language contract.

Development

From the repository root, run the Clojure tests. Then run the Python tests from extension/:

clojure -M:test
cd extension
uv run --with pytest --with pyright==1.1.414 pytest tests -q

Can you improve this documentation? These fine people already did:
Karol Wojcik & michal-blockether
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close