Back to Spacevim

SpaceVim lang#clojure layer

docs/layers/lang/clojure.md

2.4.02.1 KB
Original Source

Available Layers >> lang#clojure

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer is for Clojure development, and it includes vim-clojure-static and vim-fireplace.

Features

  • Code completion
  • Syntax highlighting
  • Indent
  • Code formatting
  • REPL support

Install

To use this configuration layer, update your custom configuration file with:

toml
[[layers]]
  name = "lang#clojure"

Layer options

  • clojure_interpreter: Set the clojure interpreter, by default, it is clojure
    toml
    [[layers]]
      name = 'lang#clojure'
      clojure_interpreter = 'path/to/clojure'
    

Key bindings

Running current script

To run a clojure file, you can press SPC l r to run the current file without losing focus, and the result will be shown in a runner buffer.

Inferior REPL process

Start a clojure inferior REPL process with SPC l s i.

Send code to inferior process commands:

Key BindingsDescriptions
SPC l s bsend buffer and keep code buffer focused
SPC l s lsend line and keep code buffer focused
SPC l s ssend selection text and keep code buffer focused

LSP key Bindings

If the lsp layer is enabled for python, the following key bindings can be used:

key bindingDescription
g Djump to type definition
SPC l erename symbol
SPC l xshow references
SPC l sshow line diagnostics
SPC l dshow document
Kshow document
SPC l w llist workspace folder
SPC l w aadd workspace folder
SPC l w rremove workspace folder