1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Add lang#clojure layer doc (#2091)

This commit is contained in:
Wang Shidong 2018-09-14 22:23:40 +08:00 committed by GitHub
parent 8e4b3a555b
commit b88e9238ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 91 additions and 11 deletions

View File

@ -8,12 +8,15 @@
function! SpaceVim#layers#lang#clojure#plugins() abort
let plugins = []
if has('nvim')
call add(plugins, ['clojure-vim/acid.nvim'])
call add(plugins, ['clojure-vim/async-clj-highlight'])
call add(plugins, ['clojure-vim/async-clj-omni'])
else
endif
" if has('nvim')
" call add(plugins, ['clojure-vim/acid.nvim', {'merged' : 0}])
" call add(plugins, ['clojure-vim/async-clj-highlight', {'merged' : 0}])
" call add(plugins, ['clojure-vim/async-clj-omni', {'merged' : 0}])
" else
" for vim, use guns's clojure plugin guide
call add(plugins, ['guns/vim-clojure-static', {'merged' : 0}])
call add(plugins, ['guns/vim-clojure-highlight', {'merged' : 0}])
" endif
if !g:spacevim_enable_neomake && !g:spacevim_enable_ale
call add(plugins, ['venantius/vim-eastwood', {'merged' : 0}])
endif
@ -24,5 +27,5 @@ endfunction
function! SpaceVim#layers#lang#clojure#config() abort
endfunction

View File

@ -99,9 +99,11 @@ if has('nvim') && exists('*chanclose')
endfunction
else
function! s:on_stdout(job_id, data, event) abort
call s:BUFFER.buf_set_lines(s:bufnr, s:lines , s:lines + 1, 0, a:data)
let s:lines += len(a:data)
call s:update_statusline()
if bufexists(s:bufnr)
call s:BUFFER.buf_set_lines(s:bufnr, s:lines , s:lines + 1, 0, a:data)
let s:lines += len(a:data)
call s:update_statusline()
endif
endfunction
endif
@ -119,7 +121,6 @@ function! s:on_exit(job_id, data, event) abort
call s:BUFFER.buf_set_lines(s:bufnr, s:lines , s:lines + 1, 0, done)
endif
call s:update_statusline()
endfunction
function! s:update_statusline() abort

View File

@ -84,6 +84,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
| [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 agda 语言开发的支持,主要包括语法高亮及一键运行。 |
| [lang#autohotkey](lang/autohotkey/) | 这一个模块为 SpaceVim 提供了 autohotkey 语言的开发支持,包括语法高亮和自动补全等功能。 |
| [lang#c](lang/c/) | 这一模块为 c/c++/object-c 的开发提供了支持,包括代码补全、语法检查等特性。 |
| [lang#clojure](lang/clojure/) | 这一模块为 clojure 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
| [lang#csharp](lang/csharp/) | 该模块为 SpaceVim 提供 csharp 开发支持,包括代码高亮、对齐、补全等特性。 |
| [lang#dart](lang/dart/) | 这一模块为 dart 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 dockerfile 的编辑提供了部分功能支持,包括语法高亮和自动补全。 |

View File

@ -0,0 +1,35 @@
---
title: "SpaceVim lang#clojure 模块"
description: "这一模块为 clojure 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
lang: cn
---
# [可用模块](../../) >> lang#clojure
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [功能特性](#功能特性)
- [启用模块](#启用模块)
<!-- vim-markdown-toc -->
## 模块简介
这一模块为 SpaceVim 提供了 clojure 开发支持主要包括插件vim-clojure-static 和 vim-fireplace。
## 功能特性
- 代码补全
- 文档查询
- 跳转定义处
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "lang#clojure"
```

View File

@ -88,6 +88,7 @@ enable = false
| [lang#agda](lang/agda/) | This layer adds agda language support to SpaceVim |
| [lang#autohotkey](lang/autohotkey/) | This layer adds autohotkey language support to SpaceVim |
| [lang#c](lang/c/) | c/c++/object-c language support for SpaceVim, include code completion, jump to definition, quick runner. |
| [lang#clojure](lang/clojure/) | This layer is for clojure development, provide autocompletion, syntax checking, code format for clojure file. |
| [lang#csharp](lang/csharp/) | This layer is for csharp development |
| [lang#dart](lang/dart/) | This layer is for dart development, provide autocompletion, syntax checking, code format for dart file. |
| [lang#dockerfile](lang/dockerfile/) | This layer adds DockerFile to SpaceVim |

View File

@ -0,0 +1,38 @@
---
title: "SpaceVim lang#clojure layer"
description: "This layer is for clojure development, provide autocompletion, syntax checking, code format for clojure file."
---
# [Available Layers](../../) >> lang#clojure
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Layer](#layer)
<!-- 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
### Layer
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#clojure"
```

View File

@ -45,6 +45,7 @@ The next release is v0.9.0.
- Improve statusline mode text and color ([#2034](https://github.com/SpaceVim/SpaceVim/pull/2034))
- Improve `lang#perl` layer, add layer doc ([#2041](https://github.com/SpaceVim/SpaceVim/pull/2041))
- Improve `lang#scala` layer, add layer doc ([#2077](https://github.com/SpaceVim/SpaceVim/pull/2077))
- Improve `lang#clojure` layer, add layer doc ([#2091](https://github.com/SpaceVim/SpaceVim/pull/2091))
- Improve `fzf` layer, add helptags source ([#2047](https://github.com/SpaceVim/SpaceVim/pull/2047))
- Improve statusline for nerdtree buffer ([#2117](https://github.com/SpaceVim/SpaceVim/pull/2117))
- Improve statusline for mundo buffer ([#2118](https://github.com/SpaceVim/SpaceVim/pull/2118))