Clojure Language Pack
Include the Clojure language pack in the lua/community.lua file
{ import = "astrocommunity.pack.clojure" },The Clojure pack requires:
- Java Development Kit, e.g. Practicalli - Install Java host for Clojure
- Clojure CLI or Leiningen
The Clojure language pack includes:
clojuretreesitter parsers- clojure-lsp language server
- Clojure REPL client: Olical/conjure
- Structural editing: parpar-nvim which provides both nvim-parinfer & nvim-paredit
NOTE: Conjure is available as a code-runner plugin config. nvim-paredit and nvim-parinfer are available as editing-support plugin configurations
Clojure Guides
:ConjureSchool in a Clojure buffer runs an interactive tutorial for Conjure
- Clojure.org API reference and guides
- Conjure - Clojure guide
- Practicalli Neovim Clojure development workflow and examples of configuring Astrocommunity clojure pack
Override Configuration
Plugins in the language pack can be disabled and default options overridden.
Example: Include the Clojure language pack and disable the parinfer plugin by setting the enabled key to false.
{ import = "astrocommunity.pack.clojure" },
{ "gpanders/nvim-parinfer", enabled = false },
{ "julienvincent/nvim-paredit", enabled = false },Example: Change the test runner used by Conjure. clojure.test runner is used by default
{ import = "astrocommunity.pack.clojure" },
{
"AstroNvim/astrocore",
opts = {
options = {
g = {
-- Set Test runner: "clojure", "clojurescript", "kaocha"
["conjure#client#clojure#nrepl#test#runner"] = "kaocha",
},
},
},
},NOTE:
:help conjure-client-clojure-nreplfor full list of Conjure options for Clojure.