1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-24 18:52:22 +08:00
This commit is contained in:
Wang Shidong 2019-07-16 22:05:20 +08:00 committed by GitHub
parent abf08ed57d
commit 33326c7852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 415 additions and 32 deletions

View File

@ -6,6 +6,33 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#d, layer-lang-d
" @parentsection layers
" This layer is for d development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#d'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for d, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#d#plugins() abort function! SpaceVim#layers#lang#d#plugins() abort
let plugins = [] let plugins = []

View File

@ -6,6 +6,33 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#hack, layer-lang-hack
" @parentsection layers
" This layer is for hack development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#hack'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for hack, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#hack#plugins() abort function! SpaceVim#layers#lang#hack#plugins() abort
let plugins = [] let plugins = []

View File

@ -6,6 +6,34 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#haskell, layer-lang-haskell
" @parentsection layers
" This layer is for haskell development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#haskell'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for haskell, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#haskell#plugins() abort function! SpaceVim#layers#lang#haskell#plugins() abort
let plugins = [ let plugins = [
\ ['neovimhaskell/haskell-vim', { 'on_ft': 'haskell' }], \ ['neovimhaskell/haskell-vim', { 'on_ft': 'haskell' }],

View File

@ -6,6 +6,33 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#hy, layer-lang-hy
" @parentsection layers
" This layer is for hy development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#hy'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for hy, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#hy#plugins() abort function! SpaceVim#layers#lang#hy#plugins() abort
let plugins = [] let plugins = []

View File

@ -27,6 +27,17 @@
" normal SPC l E rename symbol in project " normal SPC l E rename symbol in project
" normal g d go to definition " normal g d go to definition
" < " <
"
" This layer also provides REPL support for nim, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#nim#plugins() abort function! SpaceVim#layers#lang#nim#plugins() abort

View File

@ -6,6 +6,33 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#pact, layer-lang-pact
" @parentsection layers
" This layer is for pact development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#pact'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for pact, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#pact#plugins() abort function! SpaceVim#layers#lang#pact#plugins() abort
let plugins = [] let plugins = []

View File

@ -9,12 +9,19 @@
"" ""
" @section lang#pony, layer-lang-pony " @section lang#pony, layer-lang-pony
" @parentsection layers " @parentsection layers
" This layer includes utilities and language-specific mappings for pony development. " This layer is for pony development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" > " >
" [[layers]] " [[layers]]
" name = 'lang#pony' " name = 'lang#pony'
" < " <
" "
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
function! SpaceVim#layers#lang#pony#plugins() abort function! SpaceVim#layers#lang#pony#plugins() abort
let plugins = [] let plugins = []

View File

@ -6,6 +6,34 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
""
" @section lang#racket, layer-lang-racket
" @parentsection layers
" This layer is for racket development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [[layers]]
" name = 'lang#racket'
" <
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for racket, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
function! SpaceVim#layers#lang#racket#plugins() abort function! SpaceVim#layers#lang#racket#plugins() abort
let plugins = [] let plugins = []
call add(plugins, ['wlangstroth/vim-racket', {'merged' : 0}]) call add(plugins, ['wlangstroth/vim-racket', {'merged' : 0}])

View File

@ -4,7 +4,7 @@ let g:airline_skip_empty_sections = 1
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tmuxline#enabled = 1 let g:airline#extensions#tmuxline#enabled = 1
let g:Powerline_sybols = 'unicode' let g:Powerline_sybols = 'unicode'
if g:spacevim_buffer_index_type < 3 if get(g:, 'spacevim_buffer_index_type', 1) < 3
let g:airline#extensions#tabline#buffer_idx_mode = 1 let g:airline#extensions#tabline#buffer_idx_mode = 1
let g:airline#extensions#tabline#buffer_idx_format = {} let g:airline#extensions#tabline#buffer_idx_format = {}
for s:i in range(9) for s:i in range(9)

View File

@ -81,34 +81,40 @@ CONTENTS *SpaceVim-contents*
11. lang#c.......................................|SpaceVim-layer-lang-c| 11. lang#c.......................................|SpaceVim-layer-lang-c|
12. lang#crystal...........................|SpaceVim-layer-lang-crystal| 12. lang#crystal...........................|SpaceVim-layer-lang-crystal|
13. lang#csharp.............................|SpaceVim-layer-lang-csharp| 13. lang#csharp.............................|SpaceVim-layer-lang-csharp|
14. lang#dart.................................|SpaceVim-layer-lang-dart| 14. lang#d.......................................|SpaceVim-layer-lang-d|
15. lang#elixir.............................|SpaceVim-layer-lang-elixir| 15. lang#dart.................................|SpaceVim-layer-lang-dart|
16. lang#elm...................................|SpaceVim-layer-lang-elm| 16. lang#elixir.............................|SpaceVim-layer-lang-elixir|
17. lang#go.....................................|SpaceVim-layer-lang-go| 17. lang#elm...................................|SpaceVim-layer-lang-elm|
18. lang#groovy.............................|SpaceVim-layer-lang-groovy| 18. lang#go.....................................|SpaceVim-layer-lang-go|
19. lang#java.................................|SpaceVim-layer-lang-java| 19. lang#groovy.............................|SpaceVim-layer-lang-groovy|
20. lang#julia...............................|SpaceVim-layer-lang-julia| 20. lang#hack.................................|SpaceVim-layer-lang-hack|
21. lang#kotlin.............................|SpaceVim-layer-lang-kotlin| 21. lang#haskell...........................|SpaceVim-layer-lang-haskell|
22. lang#livescript.....................|SpaceVim-layer-lang-livescript| 22. lang#hy.....................................|SpaceVim-layer-lang-hy|
23. lang#lua...................................|SpaceVim-layer-lang-lua| 23. lang#java.................................|SpaceVim-layer-lang-java|
24. lang#nim...................................|SpaceVim-layer-lang-nim| 24. lang#julia...............................|SpaceVim-layer-lang-julia|
25. lang#ocaml...............................|SpaceVim-layer-lang-ocaml| 25. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
26. lang#php...................................|SpaceVim-layer-lang-php| 26. lang#livescript.....................|SpaceVim-layer-lang-livescript|
27. lang#pony.................................|SpaceVim-layer-lang-pony| 27. lang#lua...................................|SpaceVim-layer-lang-lua|
28. lang#processing.....................|SpaceVim-layer-lang-processing| 28. lang#nim...................................|SpaceVim-layer-lang-nim|
29. lang#prolog.............................|SpaceVim-layer-lang-prolog| 29. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
30. lang#puppet.............................|SpaceVim-layer-lang-puppet| 30. lang#pact.................................|SpaceVim-layer-lang-pact|
31. lang#python.............................|SpaceVim-layer-lang-python| 31. lang#php...................................|SpaceVim-layer-lang-php|
32. lang#rust.................................|SpaceVim-layer-lang-rust| 32. lang#pony.................................|SpaceVim-layer-lang-pony|
33. lang#scala...............................|SpaceVim-layer-lang-scala| 33. lang#processing.....................|SpaceVim-layer-lang-processing|
34. lang#tcl...................................|SpaceVim-layer-lang-tcl| 34. lang#prolog.............................|SpaceVim-layer-lang-prolog|
35. lang#xml...................................|SpaceVim-layer-lang-xml| 35. lang#puppet.............................|SpaceVim-layer-lang-puppet|
36. operator...................................|SpaceVim-layer-operator| 36. lang#python.............................|SpaceVim-layer-lang-python|
37. shell.........................................|SpaceVim-layer-shell| 37. lang#racket.............................|SpaceVim-layer-lang-racket|
38. test...........................................|SpaceVim-layer-test| 38. lang#rust.................................|SpaceVim-layer-lang-rust|
39. tmux...........................................|SpaceVim-layer-tmux| 39. lang#scala...............................|SpaceVim-layer-lang-scala|
40. tools#dash...............................|SpaceVim-layer-tools-dash| 40. lang#tcl...................................|SpaceVim-layer-lang-tcl|
41. tools#zeal...............................|SpaceVim-layer-tools-zeal| 41. lang#xml...................................|SpaceVim-layer-lang-xml|
42. operator...................................|SpaceVim-layer-operator|
43. shell.........................................|SpaceVim-layer-shell|
44. test...........................................|SpaceVim-layer-test|
45. tmux...........................................|SpaceVim-layer-tmux|
46. tools#dash...............................|SpaceVim-layer-tools-dash|
47. tools#zeal...............................|SpaceVim-layer-tools-zeal|
7. API........................................................|SpaceVim-api| 7. API........................................................|SpaceVim-api|
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu| 1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
2. data#dict....................................|SpaceVim-api-data-dict| 2. data#dict....................................|SpaceVim-api-data-dict|
@ -1377,6 +1383,35 @@ KEY MAPPINGS
normal SPC l s S stop the OmniSharp server normal SPC l s S stop the OmniSharp server
< <
==============================================================================
LANG#D *SpaceVim-layer-lang-d*
This layer is for d development, disabled by default, to enable this layer,
add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#d'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for d, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
============================================================================== ==============================================================================
LANG#DART *SpaceVim-layer-lang-dart* LANG#DART *SpaceVim-layer-lang-dart*
@ -1464,6 +1499,93 @@ This layer also provides REPL support for groovy, the key bindings are:
< <
==============================================================================
LANG#HACK *SpaceVim-layer-lang-hack*
This layer is for hack development, disabled by default, to enable this layer,
add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#hack'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for hack, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
==============================================================================
LANG#HASKELL *SpaceVim-layer-lang-haskell*
This layer is for haskell development, disabled by default, to enable this
layer, add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#haskell'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for haskell, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
==============================================================================
LANG#HY *SpaceVim-layer-lang-hy*
This layer is for hy development, disabled by default, to enable this layer,
add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#hy'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for hy, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
============================================================================== ==============================================================================
LANG#JAVA *SpaceVim-layer-lang-java* LANG#JAVA *SpaceVim-layer-lang-java*
@ -1639,6 +1761,17 @@ KEY BINDINGS
normal g d go to definition normal g d go to definition
< <
This layer also provides REPL support for nim, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
============================================================================== ==============================================================================
LANG#OCAML *SpaceVim-layer-lang-ocaml* LANG#OCAML *SpaceVim-layer-lang-ocaml*
@ -1650,6 +1783,35 @@ Requirements:
merlin merlin
< <
==============================================================================
LANG#PACT *SpaceVim-layer-lang-pact*
This layer is for pact development, disabled by default, to enable this layer,
add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#pact'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for pact, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
============================================================================== ==============================================================================
LANG#PHP *SpaceVim-layer-lang-php* LANG#PHP *SpaceVim-layer-lang-php*
@ -1659,13 +1821,20 @@ checking, and jump to definition.
============================================================================== ==============================================================================
LANG#PONY *SpaceVim-layer-lang-pony* LANG#PONY *SpaceVim-layer-lang-pony*
This layer includes utilities and language-specific mappings for pony This layer is for pony development, disabled by default, to enable this layer,
development. add following snippet to your SpaceVim configuration file.
> >
[[layers]] [[layers]]
name = 'lang#pony' name = 'lang#pony'
< <
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
============================================================================== ==============================================================================
LANG#PROCESSING *SpaceVim-layer-lang-processing* LANG#PROCESSING *SpaceVim-layer-lang-processing*
@ -1723,6 +1892,35 @@ MAPPINGS
mode key function mode key function
< <
==============================================================================
LANG#RACKET *SpaceVim-layer-lang-racket*
This layer is for racket development, disabled by default, to enable this
layer, add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#racket'
<
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for racket, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
============================================================================== ==============================================================================
LANG#RUST *SpaceVim-layer-lang-rust* LANG#RUST *SpaceVim-layer-lang-rust*

View File

@ -3,3 +3,6 @@ Execute ( SpaceVim mode ):
let basic = toml.parse_file('mode/basic.toml') let basic = toml.parse_file('mode/basic.toml')
let dark = toml.parse_file('mode/dark_powered.toml') let dark = toml.parse_file('mode/dark_powered.toml')
AssertEqual basic.options.statusline_separator, 'nil' AssertEqual basic.options.statusline_separator, 'nil'
unlet toml
unlet basic
unlet dark