1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-28 01:10:05 +08:00
SpaceVim/docs/layers/lang/clojure.md

62 lines
1.5 KiB
Markdown
Raw Normal View History

2018-09-14 22:23:40 +08:00
---
title: "SpaceVim lang#clojure layer"
2019-02-03 20:51:01 +08:00
description: "This layer is for Clojure development, provide autocompletion, syntax checking, code format for Clojure file."
2018-09-14 22:23:40 +08:00
---
# [Available Layers](../../) >> lang#clojure
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Layer](#layer)
2020-10-07 22:34:35 +08:00
- [Key bindings](#key-bindings)
- [Running current script](#running-current-script)
- [Inferior REPL process](#inferior-repl-process)
2018-09-14 22:23:40 +08:00
<!-- vim-markdown-toc -->
## Description
2019-02-03 20:51:01 +08:00
This layer is for Clojure development, and it includes vim-clojure-static and vim-fireplace.
2018-09-14 22:23:40 +08:00
## Features
- Code completion
- Syntax highlighting
- Indent
- Code formatting
- REPL support
## Install
### Layer
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#clojure"
```
2020-10-07 22:34:35 +08:00
## Key bindings
### Running current script
To running a clojure file, you can press `SPC l r` to run current file without loss 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 Bindings | Descriptions |
| ------------ | ------------------------------------------------ |
| `SPC l s b` | send buffer and keep code buffer focused |
| `SPC l s l` | send line and keep code buffer focused |
| `SPC l s s` | send selection text and keep code buffer focused |