mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
Update erlang layer code owner (#2218)
This commit is contained in:
parent
10e8d920b0
commit
d60ef10ffa
32
.SpaceVim.d/autoload/SpaceVim/dev/codeowner.vim
Normal file
32
.SpaceVim.d/autoload/SpaceVim/dev/codeowner.vim
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
let s:FILE = SpaceVim#api#import('file')
|
||||||
|
|
||||||
|
func! s:paser(file)
|
||||||
|
let config = readfile(a:file, '')
|
||||||
|
let rst = {}
|
||||||
|
for line in config
|
||||||
|
if line !~ '^#' && !empty(line)
|
||||||
|
let file = split(line)[0]
|
||||||
|
let owners = split(line)[1:]
|
||||||
|
call extend(rst, {file : owners})
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
return rst
|
||||||
|
endf
|
||||||
|
|
||||||
|
let s:owners = s:paser('.github/CODEOWNERS')
|
||||||
|
let g:owners = s:owners
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func! SpaceVim#dev#codeowner#open_profile()
|
||||||
|
let url = 'https://github.com/'
|
||||||
|
let owners = get(s:owners, s:FILE.unify_path(expand('%'), ':.'), [])
|
||||||
|
if !empty(owners)
|
||||||
|
let url = url . owners[0][1:]
|
||||||
|
exe 'OpenBrowser ' . url
|
||||||
|
else
|
||||||
|
echohl WarnMsg
|
||||||
|
echon 'can not find owner for current file'
|
||||||
|
echohl None
|
||||||
|
endif
|
||||||
|
endf
|
6
.github/CODEOWNERS
vendored
6
.github/CODEOWNERS
vendored
@ -14,3 +14,9 @@ docs/cn/layers/lang/julia.md @jingpengw
|
|||||||
autoload/SpaceVim/layers/lang/javascript.vim @zhujinxuan @S1ngS1ng @chemzqm
|
autoload/SpaceVim/layers/lang/javascript.vim @zhujinxuan @S1ngS1ng @chemzqm
|
||||||
docs/layers/lang/javascript.md @zhujinxuan @S1ngS1ng @chemzqm
|
docs/layers/lang/javascript.md @zhujinxuan @S1ngS1ng @chemzqm
|
||||||
docs/cn/layers/lang/javascript.md @zhujinxuan @S1ngS1ng @chemzqm
|
docs/cn/layers/lang/javascript.md @zhujinxuan @S1ngS1ng @chemzqm
|
||||||
|
|
||||||
|
|
||||||
|
# lang#erlang layer
|
||||||
|
autoload/SpaceVim/layers/lang/erlang.vim @suzuiyuegjy
|
||||||
|
docs/layers/lang/erlang.md @suzuiyuegjy
|
||||||
|
docs/cn/layers/lang/erlang.md @suzuiyuegjy
|
||||||
|
@ -6,12 +6,40 @@
|
|||||||
" License: GPLv3
|
" License: GPLv3
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
|
||||||
|
""
|
||||||
|
" @section lang#erlang, layer-lang-erlang
|
||||||
|
" @parentsection layers
|
||||||
|
" This layer is for erlang development, disabled by default, to enable this
|
||||||
|
" layer, add following snippet to your SpaceVim configuration file.
|
||||||
|
" >
|
||||||
|
" [[layers]]
|
||||||
|
" name = 'lang#erlang'
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
" @subsection Key bindings
|
||||||
|
" >
|
||||||
|
" Mode Key Function
|
||||||
|
" ---------------------------------------------
|
||||||
|
" normal SPC l r run current file
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
" This layer also provides REPL support for erlang, 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#erlang#plugins() abort
|
function! SpaceVim#layers#lang#erlang#plugins() abort
|
||||||
let plugins = []
|
let plugins = []
|
||||||
call add(plugins, ['vim-erlang/vim-erlang-compiler', {'on_ft' : 'erlang'}])
|
" call add(plugins, ['vim-erlang/vim-erlang-compiler', {'on_ft' : 'erlang'}])
|
||||||
call add(plugins, ['vim-erlang/vim-erlang-omnicomplete', {'on_ft' : 'erlang'}])
|
call add(plugins, ['vim-erlang/vim-erlang-omnicomplete', {'on_ft' : 'erlang'}])
|
||||||
call add(plugins, ['vim-erlang/vim-erlang-runtime', {'on_ft' : 'erlang'}])
|
call add(plugins, ['vim-erlang/vim-erlang-runtime', {'on_ft' : 'erlang'}])
|
||||||
call add(plugins, ['vim-erlang/vim-erlang-tags', {'on_ft' : 'erlang'}])
|
" call add(plugins, ['vim-erlang/vim-erlang-tags', {'on_ft' : 'erlang'}])
|
||||||
return plugins
|
return plugins
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -89,36 +89,38 @@ CONTENTS *SpaceVim-contents*
|
|||||||
15. lang#dart.................................|SpaceVim-layer-lang-dart|
|
15. lang#dart.................................|SpaceVim-layer-lang-dart|
|
||||||
16. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
16. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
||||||
17. lang#elm...................................|SpaceVim-layer-lang-elm|
|
17. lang#elm...................................|SpaceVim-layer-lang-elm|
|
||||||
18. lang#go.....................................|SpaceVim-layer-lang-go|
|
18. lang#erlang.............................|SpaceVim-layer-lang-erlang|
|
||||||
19. lang#groovy.............................|SpaceVim-layer-lang-groovy|
|
19. lang#go.....................................|SpaceVim-layer-lang-go|
|
||||||
20. lang#hack.................................|SpaceVim-layer-lang-hack|
|
20. lang#groovy.............................|SpaceVim-layer-lang-groovy|
|
||||||
21. lang#haskell...........................|SpaceVim-layer-lang-haskell|
|
21. lang#hack.................................|SpaceVim-layer-lang-hack|
|
||||||
22. lang#hy.....................................|SpaceVim-layer-lang-hy|
|
22. lang#haskell...........................|SpaceVim-layer-lang-haskell|
|
||||||
23. lang#java.................................|SpaceVim-layer-lang-java|
|
23. lang#hy.....................................|SpaceVim-layer-lang-hy|
|
||||||
24. lang#julia...............................|SpaceVim-layer-lang-julia|
|
24. lang#java.................................|SpaceVim-layer-lang-java|
|
||||||
25. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
|
25. lang#julia...............................|SpaceVim-layer-lang-julia|
|
||||||
26. lang#livescript.....................|SpaceVim-layer-lang-livescript|
|
26. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
|
||||||
27. lang#lua...................................|SpaceVim-layer-lang-lua|
|
27. lang#livescript.....................|SpaceVim-layer-lang-livescript|
|
||||||
28. lang#nim...................................|SpaceVim-layer-lang-nim|
|
28. lang#lua...................................|SpaceVim-layer-lang-lua|
|
||||||
29. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
29. lang#nim...................................|SpaceVim-layer-lang-nim|
|
||||||
30. lang#pact.................................|SpaceVim-layer-lang-pact|
|
30. lang#nix...................................|SpaceVim-layer-lang-nix|
|
||||||
31. lang#php...................................|SpaceVim-layer-lang-php|
|
31. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
||||||
32. lang#pony.................................|SpaceVim-layer-lang-pony|
|
32. lang#pact.................................|SpaceVim-layer-lang-pact|
|
||||||
33. lang#processing.....................|SpaceVim-layer-lang-processing|
|
33. lang#php...................................|SpaceVim-layer-lang-php|
|
||||||
34. lang#prolog.............................|SpaceVim-layer-lang-prolog|
|
34. lang#pony.................................|SpaceVim-layer-lang-pony|
|
||||||
35. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
35. lang#processing.....................|SpaceVim-layer-lang-processing|
|
||||||
36. lang#python.............................|SpaceVim-layer-lang-python|
|
36. lang#prolog.............................|SpaceVim-layer-lang-prolog|
|
||||||
37. lang#racket.............................|SpaceVim-layer-lang-racket|
|
37. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||||
38. lang#rust.................................|SpaceVim-layer-lang-rust|
|
38. lang#python.............................|SpaceVim-layer-lang-python|
|
||||||
39. lang#scala...............................|SpaceVim-layer-lang-scala|
|
39. lang#racket.............................|SpaceVim-layer-lang-racket|
|
||||||
40. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
40. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||||
41. lang#xml...................................|SpaceVim-layer-lang-xml|
|
41. lang#scala...............................|SpaceVim-layer-lang-scala|
|
||||||
42. operator...................................|SpaceVim-layer-operator|
|
42. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
||||||
43. shell.........................................|SpaceVim-layer-shell|
|
43. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||||
44. test...........................................|SpaceVim-layer-test|
|
44. operator...................................|SpaceVim-layer-operator|
|
||||||
45. tmux...........................................|SpaceVim-layer-tmux|
|
45. shell.........................................|SpaceVim-layer-shell|
|
||||||
46. tools#dash...............................|SpaceVim-layer-tools-dash|
|
46. test...........................................|SpaceVim-layer-test|
|
||||||
47. tools#zeal...............................|SpaceVim-layer-tools-zeal|
|
47. tmux...........................................|SpaceVim-layer-tmux|
|
||||||
|
48. tools#dash...............................|SpaceVim-layer-tools-dash|
|
||||||
|
49. 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|
|
||||||
@ -1479,6 +1481,35 @@ The lang#elm layer provides code completion, documentation lookup, jump to
|
|||||||
definition, mix integration, and iex integration for elm. SpaceVim uses
|
definition, mix integration, and iex integration for elm. SpaceVim uses
|
||||||
neomake as default syntax checker which is loaded in |SpaceVim-layer-checkers|
|
neomake as default syntax checker which is loaded in |SpaceVim-layer-checkers|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LANG#ERLANG *SpaceVim-layer-lang-erlang*
|
||||||
|
|
||||||
|
This layer is for erlang development, disabled by default, to enable this
|
||||||
|
layer, add following snippet to your SpaceVim configuration file.
|
||||||
|
>
|
||||||
|
[[layers]]
|
||||||
|
name = 'lang#erlang'
|
||||||
|
<
|
||||||
|
|
||||||
|
KEY BINDINGS
|
||||||
|
|
||||||
|
>
|
||||||
|
Mode Key Function
|
||||||
|
---------------------------------------------
|
||||||
|
normal SPC l r run current file
|
||||||
|
<
|
||||||
|
|
||||||
|
This layer also provides REPL support for erlang, 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#GO *SpaceVim-layer-lang-go*
|
LANG#GO *SpaceVim-layer-lang-go*
|
||||||
|
|
||||||
@ -1815,6 +1846,13 @@ This layer also provides REPL support for nim, the key bindings are:
|
|||||||
<
|
<
|
||||||
|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LANG#NIX *SpaceVim-layer-lang-nix*
|
||||||
|
|
||||||
|
INTRO
|
||||||
|
The lang#nix layer provides syntax highlighting for the Nix expression
|
||||||
|
language.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LANG#OCAML *SpaceVim-layer-lang-ocaml*
|
LANG#OCAML *SpaceVim-layer-lang-ocaml*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user