mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 04:30:04 +08:00
Add lang#racket layer (#2805)
This commit is contained in:
parent
d87b918967
commit
ed4c4ec437
54
autoload/SpaceVim/layers/lang/racket.vim
Normal file
54
autoload/SpaceVim/layers/lang/racket.vim
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
"=============================================================================
|
||||||
|
" racket.vim --- racket language support in spacevim
|
||||||
|
" Copyright (c) 2016-2017 Wang Shidong & Contributors
|
||||||
|
" Author: Wang Shidong < wsdjeg at 163.com >
|
||||||
|
" URL: https://spacevim.org
|
||||||
|
" License: GPLv3
|
||||||
|
"=============================================================================
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#racket#plugins() abort
|
||||||
|
let plugins = []
|
||||||
|
call add(plugins, ['wlangstroth/vim-racket', {'merged' : 0}])
|
||||||
|
return plugins
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#racket#config() abort
|
||||||
|
augroup spacevim_layer_lang_racket
|
||||||
|
autocmd!
|
||||||
|
au BufRead,BufNewFile *.rkt,*.rktl setf racket
|
||||||
|
augroup END
|
||||||
|
call SpaceVim#plugins#runner#reg_runner('racket',
|
||||||
|
\ {
|
||||||
|
\ 'exe' : 'racket',
|
||||||
|
\ 'opt' : ['-f'],
|
||||||
|
\ 'usestdin' : 0,
|
||||||
|
\ })
|
||||||
|
call SpaceVim#mapping#gd#add('racket', function('s:go_to_def'))
|
||||||
|
call SpaceVim#plugins#repl#reg('racket', ['racket', '-i'])
|
||||||
|
call SpaceVim#mapping#space#regesit_lang_mappings('racket', function('s:language_specified_mappings'))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:go_to_def() abort
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:language_specified_mappings() abort
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
|
||||||
|
\ 'call SpaceVim#plugins#runner#open()',
|
||||||
|
\ 'execute current file', 1)
|
||||||
|
" nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
||||||
|
let g:_spacevim_mappings_space.l.s = {'name' : '+Send'}
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 'i'],
|
||||||
|
\ 'call SpaceVim#plugins#repl#start("racket")',
|
||||||
|
\ 'start REPL process', 1)
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 'l'],
|
||||||
|
\ 'call SpaceVim#plugins#repl#send("line")',
|
||||||
|
\ 'send line and keep code buffer focused', 1)
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 'b'],
|
||||||
|
\ 'call SpaceVim#plugins#repl#send("buffer")',
|
||||||
|
\ 'send buffer and keep code buffer focused', 1)
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 's'],
|
||||||
|
\ 'call SpaceVim#plugins#repl#send("selection")',
|
||||||
|
\ 'send selection and keep code buffer focused', 1)
|
||||||
|
endfunction
|
@ -57,86 +57,87 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
|
|||||||
|
|
||||||
## 可用模块
|
## 可用模块
|
||||||
|
|
||||||
| 名称 | 描述 |
|
| 名称 | 描述 |
|
||||||
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| [VersionControl](VersionControl/) | 这一模块为 SpaceVim 提供了通用的代码版本控制支持,该模块支持 Git、Mercurial、Bazaar、SVN 等等多种后台工具。 |
|
| [VersionControl](VersionControl/) | 这一模块为 SpaceVim 提供了通用的代码版本控制支持,该模块支持 Git、Mercurial、Bazaar、SVN 等等多种后台工具。 |
|
||||||
| [autocomplete](autocomplete/) | 这一模块为 SpaceVim 提供了自动补全的框架,包括语法补全等多种补全来源,同时提供了代码块自动完成等特性。 |
|
| [autocomplete](autocomplete/) | 这一模块为 SpaceVim 提供了自动补全的框架,包括语法补全等多种补全来源,同时提供了代码块自动完成等特性。 |
|
||||||
| [chat](chat/) | 这一模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。 |
|
| [chat](chat/) | 这一模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。 |
|
||||||
| [checkers](checkers/) | 这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置。 |
|
| [checkers](checkers/) | 这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置。 |
|
||||||
| [chinese](chinese/) | 这一模块为 SpaceVim 的中文用户提供了中文的 Vim 帮助文档,同时提供部分插件的中文帮助文档。 |
|
| [chinese](chinese/) | 这一模块为 SpaceVim 的中文用户提供了中文的 Vim 帮助文档,同时提供部分插件的中文帮助文档。 |
|
||||||
| [colorscheme](colorscheme/) | 这一模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随机主题等特性。|
|
| [colorscheme](colorscheme/) | 这一模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随机主题等特性。 |
|
||||||
| [core#banner](core/banner/) | 这一模块为 SpaceVim 提供了许多显示在启动界面的 Logo。 |
|
| [core#banner](core/banner/) | 这一模块为 SpaceVim 提供了许多显示在启动界面的 Logo。 |
|
||||||
| [core#statusline](core/statusline/) | 这一模块为 SpaceVim 提供了一个高度定制的状态栏。 |
|
| [core#statusline](core/statusline/) | 这一模块为 SpaceVim 提供了一个高度定制的状态栏。 |
|
||||||
| [core#tabline](core/tabline/) | 这一模块为 SpaceVim 提供了更好的标签栏。 |
|
| [core#tabline](core/tabline/) | 这一模块为 SpaceVim 提供了更好的标签栏。 |
|
||||||
| [core](core/) | 这一模块为 SpaceVim 提供了启动及基本操作所必须的插件及配置。 |
|
| [core](core/) | 这一模块为 SpaceVim 提供了启动及基本操作所必须的插件及配置。 |
|
||||||
| [cscope](cscope/) | 这一模块为 SpaceVim 提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令。 |
|
| [cscope](cscope/) | 这一模块为 SpaceVim 提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令。 |
|
||||||
| [ctrlp](ctrlp/) | 这一模块为 SpaceVim 提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
| [ctrlp](ctrlp/) | 这一模块为 SpaceVim 提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [debug](debug/) | 这一模块为 SpaceVim 提供了 Debug 的常用功能,采用 vebugger 作为后台框架,支持多种 Debug 工具。 |
|
| [debug](debug/) | 这一模块为 SpaceVim 提供了 Debug 的常用功能,采用 vebugger 作为后台框架,支持多种 Debug 工具。 |
|
||||||
| [default](default/) | 这一模块未为 SpaceVim 提供任何插件,但提供了一些更好的默认设置。 |
|
| [default](default/) | 这一模块未为 SpaceVim 提供任何插件,但提供了一些更好的默认设置。 |
|
||||||
| [denite](denite/) | 这一模块为 SpaceVim 提供了以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
| [denite](denite/) | 这一模块为 SpaceVim 提供了以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [edit](edit/) | 这一模块为 SpaceVim 提供了更好的文本编辑体验,提供更多种文本对象。 |
|
| [edit](edit/) | 这一模块为 SpaceVim 提供了更好的文本编辑体验,提供更多种文本对象。 |
|
||||||
| [floobits](floobits/) | 这一模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。 |
|
| [floobits](floobits/) | 这一模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。 |
|
||||||
| [format](format/) | 这一模块为 SpaceVim 提供了代码异步格式化功能,支持高度自定义配置和多种语言。 |
|
| [format](format/) | 这一模块为 SpaceVim 提供了代码异步格式化功能,支持高度自定义配置和多种语言。 |
|
||||||
| [fzf](fzf/) | 这一模块为 SpaceVim 提供了以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
| [fzf](fzf/) | 这一模块为 SpaceVim 提供了以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [git](git/) | 这一模块为 SpaceVim 提供了 Git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 Git 插件。 |
|
| [git](git/) | 这一模块为 SpaceVim 提供了 Git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 Git 插件。 |
|
||||||
| [github](github/) | 这一模块为 SpaceVim 提供了 Github 数据管理功能,包括问题列表、动态等管理。 |
|
| [github](github/) | 这一模块为 SpaceVim 提供了 Github 数据管理功能,包括问题列表、动态等管理。 |
|
||||||
| [gtags](gtags/) | 这一模块为 SpaceVim 提供了全局的 gtags 索引管理,提供快速检索定义和引用的功能。 |
|
| [gtags](gtags/) | 这一模块为 SpaceVim 提供了全局的 gtags 索引管理,提供快速检索定义和引用的功能。 |
|
||||||
| [japanese](japanese/) | 这一模块为 SpaceVim 的日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。 |
|
| [japanese](japanese/) | 这一模块为 SpaceVim 的日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。 |
|
||||||
| [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。 |
|
| [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。 |
|
||||||
| [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 Agda 的开发支持,主要包括语法高亮及一键运行。 |
|
| [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 Agda 的开发支持,主要包括语法高亮及一键运行。 |
|
||||||
| [lang#asciidoc](lang/asciidoc/) | 这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
| [lang#asciidoc](lang/asciidoc/) | 这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
||||||
| [lang#autohotkey](lang/autohotkey/) | 这一模块为 SpaceVim 提供了 Autohotkey 的开发支持,包括语法高亮和自动补全等功能。 |
|
| [lang#autohotkey](lang/autohotkey/) | 这一模块为 SpaceVim 提供了 Autohotkey 的开发支持,包括语法高亮和自动补全等功能。 |
|
||||||
| [lang#c](lang/c/) | 这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。 |
|
| [lang#c](lang/c/) | 这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。 |
|
||||||
| [lang#clojure](lang/clojure/) | 这一模块为 SpaceVim 提供了 Clojure 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#clojure](lang/clojure/) | 这一模块为 SpaceVim 提供了 Clojure 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#csharp](lang/csharp/) | 这一模块为 SpaceVim 提供了 CSharp 的开发支持,包括代码高亮、对齐、补全等特性。 |
|
| [lang#csharp](lang/csharp/) | 这一模块为 SpaceVim 提供了 CSharp 的开发支持,包括代码高亮、对齐、补全等特性。 |
|
||||||
| [lang#dart](lang/dart/) | 这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#dart](lang/dart/) | 这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。 |
|
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。 |
|
||||||
| [lang#elixir](lang/elixir/) | 这一模块为 SpaceVim 提供了 Elixir 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#elixir](lang/elixir/) | 这一模块为 SpaceVim 提供了 Elixir 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#elm](lang/elm/) | 这一模块为 SpaceVim 提供了 Elm 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#elm](lang/elm/) | 这一模块为 SpaceVim 提供了 Elm 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#erlang](lang/erlang/) | 这一模块为 Erlang 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#erlang](lang/erlang/) | 这一模块为 Erlang 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#extra](lang/extra/) | 这一模块为 SpaceVim 提供了一些不常见的语言添加语法支持,主要包括语法高亮、对齐等特性。 |
|
| [lang#extra](lang/extra/) | 这一模块为 SpaceVim 提供了一些不常见的语言添加语法支持,主要包括语法高亮、对齐等特性。 |
|
||||||
| [lang#fsharp](lang/fsharp/) | 这一模块为 SpaceVim 提供了 FSharp 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#fsharp](lang/fsharp/) | 这一模块为 SpaceVim 提供了 FSharp 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#go](lang/go/) | 这一模块为 SpaceVim 提供了 Go 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#go](lang/go/) | 这一模块为 SpaceVim 提供了 Go 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#haskell](lang/haskell/) | 这一模块为 SpaceVim 提供了 Haskell 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#haskell](lang/haskell/) | 这一模块为 SpaceVim 提供了 Haskell 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#html](lang/html/) | 这一模块为 SpaceVim 提供了 HTML 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#html](lang/html/) | 这一模块为 SpaceVim 提供了 HTML 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#ipynb](lang/ipynb/) | 该模块为 SpaceVim 添加了 Jupyter Notebook 支持,包括语法高亮、代码折叠等特点。 |
|
| [lang#ipynb](lang/ipynb/) | 该模块为 SpaceVim 添加了 Jupyter Notebook 支持,包括语法高亮、代码折叠等特点。 |
|
||||||
| [lang#java](lang/java/) | 这一模块为 Java 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#java](lang/java/) | 这一模块为 Java 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#javascript](lang/javascript/) | 这一模块为 JavaScript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#javascript](lang/javascript/) | 这一模块为 JavaScript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#julia](lang/julia/) | 这一模块为 Julia 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#julia](lang/julia/) | 这一模块为 Julia 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#kotlin](lang/kotlin/) | 该模块为 SpaceVim 提供了 Kotlin 语言开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#kotlin](lang/kotlin/) | 该模块为 SpaceVim 提供了 Kotlin 语言开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#latex](lang/latex/) | 这一模块为 LaTex 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#latex](lang/latex/) | 这一模块为 LaTex 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#lisp](lang/lisp/) | 这一模块为 Lisp 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#lisp](lang/lisp/) | 这一模块为 Lisp 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#lua](lang/lua/) | 这一模块为 Lua 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#lua](lang/lua/) | 这一模块为 Lua 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#markdown](lang/markdown/) | 这一模块为 Markdown 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
| [lang#markdown](lang/markdown/) | 这一模块为 Markdown 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
||||||
| [lang#nim](lang/nim/) | 该模块为 SpaceVim 提供 Nim 开发支持,包括语法高亮、代码补全、编译运行以及交互式编程等功能。 |
|
| [lang#nim](lang/nim/) | 该模块为 SpaceVim 提供 Nim 开发支持,包括语法高亮、代码补全、编译运行以及交互式编程等功能。 |
|
||||||
| [lang#ocaml](lang/ocaml/) | 这一模块为 OCaml 开发提供了支持,包括语法高亮、代码补全、以及定义处跳转等功能。 |
|
| [lang#ocaml](lang/ocaml/) | 这一模块为 OCaml 开发提供了支持,包括语法高亮、代码补全、以及定义处跳转等功能。 |
|
||||||
| [lang#perl](lang/perl/) | 这一模块为 Perl 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#perl](lang/perl/) | 这一模块为 Perl 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#php](lang/php/) | 这一模块为 SpaceVim 提供了 PHP 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#php](lang/php/) | 这一模块为 SpaceVim 提供了 PHP 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#plantuml](lang/plantuml/) | 这一模块为 SpaceVim 提供了 PlantUML 的开发支持,包括语法高亮、实时预览等特性。 |
|
| [lang#plantuml](lang/plantuml/) | 这一模块为 SpaceVim 提供了 PlantUML 的开发支持,包括语法高亮、实时预览等特性。 |
|
||||||
| [lang#puppet](lang/puppet/) | 这一模块为 SpaceVim 提供了 Puppet 的开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#puppet](lang/puppet/) | 这一模块为 SpaceVim 提供了 Puppet 的开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#purescript](lang/purescript/) | 这一模块为 SpaceVim 提供了 PureScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#purescript](lang/purescript/) | 这一模块为 SpaceVim 提供了 PureScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#python](lang/python/) | 这一模块为 Python 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#python](lang/python/) | 这一模块为 Python 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#r](lang/r/) | 这一模块为 R 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#r](lang/r/) | 这一模块为 R 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#red](lang/red/) | 这一模块为 Red 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#racket](lang/racket/) | 该模块为 SpaceVim 提供了 racket 语言开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#ruby](lang/ruby/) | 这一模块为 Ruby 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#red](lang/red/) | 这一模块为 Red 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#rust](lang/rust/) | 这一模块为 Rust 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#ruby](lang/ruby/) | 这一模块为 Ruby 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#scala](lang/scala/) | 这一模块为 Scala 开发提供支持,包括语法高亮,函数列表等特性。 |
|
| [lang#rust](lang/rust/) | 这一模块为 Rust 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#scheme](lang/scheme/) | 这一模块为 SpaceVim 提供了 Scheme 语言开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#scala](lang/scala/) | 这一模块为 Scala 开发提供支持,包括语法高亮,函数列表等特性。 |
|
||||||
| [lang#sh](lang/sh/) | 这一模块为 SpaceVim 提供了 Shell Script 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#scheme](lang/scheme/) | 这一模块为 SpaceVim 提供了 Scheme 语言开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#swift](lang/swift/) | 这一模块为 SpaceVim 提供了 Swift 的开发支持,包括语法高亮、语法检查等特性。 |
|
| [lang#sh](lang/sh/) | 这一模块为 SpaceVim 提供了 Shell Script 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#typescript](lang/typescript/) | 这一模块为 SpaceVim 提供了 TypeScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#swift](lang/swift/) | 这一模块为 SpaceVim 提供了 Swift 的开发支持,包括语法高亮、语法检查等特性。 |
|
||||||
| [lang#vim](lang/vim/) | 这一模块为 SpaceVim 提供了 Vimscript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#typescript](lang/typescript/) | 这一模块为 SpaceVim 提供了 TypeScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#vue](lang/vue/) | 这一模块为 SpaceVim 提供了 Vue 的的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#vim](lang/vim/) | 这一模块为 SpaceVim 提供了 Vimscript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [language-server-protocol](language-server-protocol/) | 这一模块为 SpaceVim 提供了 language server protocol 的支持,提供更多语言相关服务。 |
|
| [lang#vue](lang/vue/) | 这一模块为 SpaceVim 提供了 Vue 的的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [leaderf](leaderf/) | 这一模块为 SpaceVim 提供了以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
| [language-server-protocol](language-server-protocol/) | 这一模块为 SpaceVim 提供了 language server protocol 的支持,提供更多语言相关服务。 |
|
||||||
| [shell](shell/) | 这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验。 |
|
| [leaderf](leaderf/) | 这一模块为 SpaceVim 提供了以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [sudo](sudo/) | 这一模块为 SpaceVim 提供了以管理员身份读写文件的功能。 |
|
| [shell](shell/) | 这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验。 |
|
||||||
| [test](test/) | 这一模块为 SpaceVim 提供了一个测试框架,支持快速运行多种语言的单元测试。 |
|
| [sudo](sudo/) | 这一模块为 SpaceVim 提供了以管理员身份读写文件的功能。 |
|
||||||
| [tmux](tmux/) | 这一模块为 SpaceVim 提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。 |
|
| [test](test/) | 这一模块为 SpaceVim 提供了一个测试框架,支持快速运行多种语言的单元测试。 |
|
||||||
| [tools#dash](tools/dash/) | 这一模块为 SpaceVim 提供了 Dash 支持,可快速查找光标位置的单词。 |
|
| [tmux](tmux/) | 这一模块为 SpaceVim 提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。 |
|
||||||
| [tools](tools/) | 这一模块为 SpaceVim 提供了多种常用工具,包括日历、计算器等多种工具类插件,并针对 Vim8 以及 Neovim 提供了更好的插件选择。 |
|
| [tools#dash](tools/dash/) | 这一模块为 SpaceVim 提供了 Dash 支持,可快速查找光标位置的单词。 |
|
||||||
| [ui](ui/) | 这一模块为 SpaceVim 提供了 IDE-like 的界面,包括状态栏、文件树、语法树等等特性。 |
|
| [tools](tools/) | 这一模块为 SpaceVim 提供了多种常用工具,包括日历、计算器等多种工具类插件,并针对 Vim8 以及 Neovim 提供了更好的插件选择。 |
|
||||||
| [unite](unite/) | 这一模块为 SpaceVim 提供以 Unite 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
| [ui](ui/) | 这一模块为 SpaceVim 提供了 IDE-like 的界面,包括状态栏、文件树、语法树等等特性。 |
|
||||||
|
| [unite](unite/) | 这一模块为 SpaceVim 提供以 Unite 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
||||||
|
|
||||||
<!-- SpaceVim layer cn list end -->
|
<!-- SpaceVim layer cn list end -->
|
||||||
|
|
||||||
|
56
docs/cn/layers/lang/racket.md
Normal file
56
docs/cn/layers/lang/racket.md
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
title: "SpaceVim lang#racket 模块"
|
||||||
|
description: "该模块为 SpaceVim 提供了 racket 语言开发支持,包括语法高亮、语言服务器支持。"
|
||||||
|
lang: cn
|
||||||
|
---
|
||||||
|
|
||||||
|
# [可用模块](../../) >> lang#racket
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
|
- [模块简介](#模块简介)
|
||||||
|
- [功能特性](#功能特性)
|
||||||
|
- [启用模块](#启用模块)
|
||||||
|
- [快捷键](#快捷键)
|
||||||
|
- [交互式编程](#交互式编程)
|
||||||
|
- [运行当前文件](#运行当前文件)
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
|
## 模块简介
|
||||||
|
|
||||||
|
该模块为 SpaceVim 提供了 racket 语言开发支持。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 语法高亮
|
||||||
|
- 一键运行
|
||||||
|
- 交互式编程
|
||||||
|
|
||||||
|
## 启用模块
|
||||||
|
|
||||||
|
可通过在配置文件内加入如下配置来启用该模块:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[layers]]
|
||||||
|
name = "lang#racket"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 快捷键
|
||||||
|
|
||||||
|
### 交互式编程
|
||||||
|
|
||||||
|
启动 `racket -i` 交互进程,快捷键为: `SPC l s i`。
|
||||||
|
|
||||||
|
将代码传输给 REPL 进程执行:
|
||||||
|
|
||||||
|
| 快捷键 | 功能描述 |
|
||||||
|
| ----------- | ----------------------- |
|
||||||
|
| `SPC l s b` | 发送整个文件内容至 REPL |
|
||||||
|
| `SPC l s l` | 发送当前行内容至 REPL |
|
||||||
|
| `SPC l s s` | 发送已选中的内容至 REPL |
|
||||||
|
|
||||||
|
### 运行当前文件
|
||||||
|
|
||||||
|
在编辑 kotlin 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。
|
||||||
|
|
@ -126,6 +126,7 @@ Some layers are enabled by default. The following example shows how to disable `
|
|||||||
| [lang#purescript](lang/purescript/) | This layer is for PureScript development, provide autocompletion, syntax checking, code format for PureScript file. |
|
| [lang#purescript](lang/purescript/) | This layer is for PureScript development, provide autocompletion, syntax checking, code format for PureScript file. |
|
||||||
| [lang#python](lang/python/) | This layer is for Python development, provide autocompletion, syntax checking, code format for Python file. |
|
| [lang#python](lang/python/) | This layer is for Python development, provide autocompletion, syntax checking, code format for Python file. |
|
||||||
| [lang#r](lang/r/) | This layer is for R development, provide autocompletion, syntax checking and code format. |
|
| [lang#r](lang/r/) | This layer is for R development, provide autocompletion, syntax checking and code format. |
|
||||||
|
| [lang#racket](lang/racket/) | This layer adds racket language support to SpaceVim, including syntax highlighting, code runner and REPL support. |
|
||||||
| [lang#red](lang/red/) | This layer is for Red development, provide autocompletion, syntax checking and code format. |
|
| [lang#red](lang/red/) | This layer is for Red development, provide autocompletion, syntax checking and code format. |
|
||||||
| [lang#ruby](lang/ruby/) | This layer is for Ruby development, provide autocompletion, syntax checking, code format for Ruby file. |
|
| [lang#ruby](lang/ruby/) | This layer is for Ruby development, provide autocompletion, syntax checking, code format for Ruby file. |
|
||||||
| [lang#rust](lang/rust/) | This layer is for Rust development, provide autocompletion, syntax checking, code format for Rust file. |
|
| [lang#rust](lang/rust/) | This layer is for Rust development, provide autocompletion, syntax checking, code format for Rust file. |
|
||||||
|
55
docs/layers/lang/racket.md
Normal file
55
docs/layers/lang/racket.md
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
---
|
||||||
|
title: "SpaceVim lang#racket layer"
|
||||||
|
description: "This layer adds racket language support to SpaceVim, including syntax highlighting, code runner and REPL support."
|
||||||
|
---
|
||||||
|
|
||||||
|
# [Available Layers](../../) >> lang#racket
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
|
- [Description](#description)
|
||||||
|
- [Features](#features)
|
||||||
|
- [Install](#install)
|
||||||
|
- [Key bindings](#key-bindings)
|
||||||
|
- [Inferior REPL process](#inferior-repl-process)
|
||||||
|
- [Running current file](#running-current-file)
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This layer adds racket language support to SpaceVim.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- syntax highlighting
|
||||||
|
- code runner
|
||||||
|
- REPL support
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
To use this configuration layer, update custom configuration file with:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[layers]]
|
||||||
|
name = "lang#racket"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Key bindings
|
||||||
|
|
||||||
|
### Inferior REPL process
|
||||||
|
|
||||||
|
Start a `racket -i` 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 |
|
||||||
|
|
||||||
|
### Running current file
|
||||||
|
|
||||||
|
To running current file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user