mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
Add lang#eiffel layer (#3723)
This commit is contained in:
parent
add3ed6287
commit
8bebf33898
42
autoload/SpaceVim/layers/lang/eiffel.vim
Normal file
42
autoload/SpaceVim/layers/lang/eiffel.vim
Normal file
@ -0,0 +1,42 @@
|
||||
"=============================================================================
|
||||
" eiffel.vim --- Eiffel language layer
|
||||
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg@outlook.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
""
|
||||
" @section lang#eiffel, layer-lang-eiffel
|
||||
" @parentsection layers
|
||||
" This layer is for lang#eiffel development, disabled by default, to enable this
|
||||
" layer, add following snippet to your SpaceVim configuration file.
|
||||
" >
|
||||
" [[layers]]
|
||||
" name = 'lang#eiffel'
|
||||
" <
|
||||
"
|
||||
" @subsection Key bindings
|
||||
" >
|
||||
" Key Function
|
||||
" -----------------------------
|
||||
" SPC l
|
||||
" <
|
||||
"
|
||||
|
||||
function! SpaceVim#layers#lang#eiffel#plugins() abort
|
||||
let plugins = []
|
||||
" the upstream repo eiffelhub/vim-eiffel has not been updated since 2016.
|
||||
call add(plugins, ['wsdjeg/vim-eiffel', { 'merged' : 0}])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#eiffel#config() abort
|
||||
call SpaceVim#mapping#space#regesit_lang_mappings('eiffel', function('s:language_specified_mappings'))
|
||||
endfunction
|
||||
|
||||
function! s:language_specified_mappings() abort
|
||||
call SpaceVim#mapping#space#langSPC('nnoremap', ['l','c'],
|
||||
\ 'call SpaceVim#plugins#runner#run_task({"command" : "eclean", "args" : ["."], "isBackground" : 1})',
|
||||
\ 'run-eclean', 1)
|
||||
endfunction
|
144
doc/SpaceVim.txt
144
doc/SpaceVim.txt
@ -99,68 +99,69 @@ CONTENTS *SpaceVim-contents*
|
||||
22. lang#d.......................................|SpaceVim-layer-lang-d|
|
||||
23. lang#dart.................................|SpaceVim-layer-lang-dart|
|
||||
24. lang#dockerfile.....................|SpaceVim-layer-lang-dockerfile|
|
||||
25. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
||||
26. lang#elm...................................|SpaceVim-layer-lang-elm|
|
||||
27. lang#erlang.............................|SpaceVim-layer-lang-erlang|
|
||||
28. lang#extra...............................|SpaceVim-layer-lang-extra|
|
||||
29. lang#foxpro.............................|SpaceVim-layer-lang-foxpro|
|
||||
30. lang#fsharp.............................|SpaceVim-layer-lang-fsharp|
|
||||
31. lang#go.....................................|SpaceVim-layer-lang-go|
|
||||
32. lang#goby.................................|SpaceVim-layer-lang-goby|
|
||||
33. lang#gosu.................................|SpaceVim-layer-lang-gosu|
|
||||
34. lang#graphql...........................|SpaceVim-layer-lang-graphql|
|
||||
35. lang#groovy.............................|SpaceVim-layer-lang-groovy|
|
||||
36. lang#hack.................................|SpaceVim-layer-lang-hack|
|
||||
37. lang#haskell...........................|SpaceVim-layer-lang-haskell|
|
||||
38. lang#html.................................|SpaceVim-layer-lang-html|
|
||||
39. lang#hy.....................................|SpaceVim-layer-lang-hy|
|
||||
40. lang#idris...............................|SpaceVim-layer-lang-idris|
|
||||
41. lang#j.......................................|SpaceVim-layer-lang-j|
|
||||
42. lang#janet...............................|SpaceVim-layer-lang-janet|
|
||||
43. lang#java.................................|SpaceVim-layer-lang-java|
|
||||
44. lang#javascript.....................|SpaceVim-layer-lang-javascript|
|
||||
45. lang#json.................................|SpaceVim-layer-lang-json|
|
||||
46. lang#julia...............................|SpaceVim-layer-lang-julia|
|
||||
47. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
|
||||
48. lang#livescript.....................|SpaceVim-layer-lang-livescript|
|
||||
49. lang#lua...................................|SpaceVim-layer-lang-lua|
|
||||
50. lang#moonscript.....................|SpaceVim-layer-lang-moonscript|
|
||||
51. lang#nim...................................|SpaceVim-layer-lang-nim|
|
||||
52. lang#nix...................................|SpaceVim-layer-lang-nix|
|
||||
53. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
||||
54. lang#pact.................................|SpaceVim-layer-lang-pact|
|
||||
55. lang#php...................................|SpaceVim-layer-lang-php|
|
||||
56. lang#pony.................................|SpaceVim-layer-lang-pony|
|
||||
57. lang#processing.....................|SpaceVim-layer-lang-processing|
|
||||
58. lang#prolog.............................|SpaceVim-layer-lang-prolog|
|
||||
59. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||
60. lang#python.............................|SpaceVim-layer-lang-python|
|
||||
61. lang#racket.............................|SpaceVim-layer-lang-racket|
|
||||
62. lang#racket................................|SpaceVim-layer-lang-red|
|
||||
63. lang#ring....................................|SpaceVim-layer-lang-r|
|
||||
64. lang#ring.................................|SpaceVim-layer-lang-ring|
|
||||
65. lang#ruby.................................|SpaceVim-layer-lang-ruby|
|
||||
66. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||
67. lang#scala...............................|SpaceVim-layer-lang-scala|
|
||||
68. lang#scheme.............................|SpaceVim-layer-lang-scheme|
|
||||
69. lang#sh.....................................|SpaceVim-layer-lang-sh|
|
||||
70. lang#swig................................|SpaceVim-layer-lang-swift|
|
||||
71. lang#swig.................................|SpaceVim-layer-lang-swig|
|
||||
72. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
||||
73. lang#toml.................................|SpaceVim-layer-lang-toml|
|
||||
74. lang#typescript.....................|SpaceVim-layer-lang-typescript|
|
||||
75. lang#v.......................................|SpaceVim-layer-lang-v|
|
||||
76. lang#vbnet...............................|SpaceVim-layer-lang-vbnet|
|
||||
77. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||
78. lang#xquery.............................|SpaceVim-layer-lang-xquery|
|
||||
79. language server protocol........................|SpaceVim-layer-lsp|
|
||||
80. leaderf.....................................|SpaceVim-layer-leaderf|
|
||||
81. operator...................................|SpaceVim-layer-operator|
|
||||
82. shell.........................................|SpaceVim-layer-shell|
|
||||
83. test...........................................|SpaceVim-layer-test|
|
||||
84. tmux...........................................|SpaceVim-layer-tmux|
|
||||
85. tools#dash...............................|SpaceVim-layer-tools-dash|
|
||||
86. tools#zeal...............................|SpaceVim-layer-tools-zeal|
|
||||
25. lang#eiffel.............................|SpaceVim-layer-lang-eiffel|
|
||||
26. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
||||
27. lang#elm...................................|SpaceVim-layer-lang-elm|
|
||||
28. lang#erlang.............................|SpaceVim-layer-lang-erlang|
|
||||
29. lang#extra...............................|SpaceVim-layer-lang-extra|
|
||||
30. lang#foxpro.............................|SpaceVim-layer-lang-foxpro|
|
||||
31. lang#fsharp.............................|SpaceVim-layer-lang-fsharp|
|
||||
32. lang#go.....................................|SpaceVim-layer-lang-go|
|
||||
33. lang#goby.................................|SpaceVim-layer-lang-goby|
|
||||
34. lang#gosu.................................|SpaceVim-layer-lang-gosu|
|
||||
35. lang#graphql...........................|SpaceVim-layer-lang-graphql|
|
||||
36. lang#groovy.............................|SpaceVim-layer-lang-groovy|
|
||||
37. lang#hack.................................|SpaceVim-layer-lang-hack|
|
||||
38. lang#haskell...........................|SpaceVim-layer-lang-haskell|
|
||||
39. lang#html.................................|SpaceVim-layer-lang-html|
|
||||
40. lang#hy.....................................|SpaceVim-layer-lang-hy|
|
||||
41. lang#idris...............................|SpaceVim-layer-lang-idris|
|
||||
42. lang#j.......................................|SpaceVim-layer-lang-j|
|
||||
43. lang#janet...............................|SpaceVim-layer-lang-janet|
|
||||
44. lang#java.................................|SpaceVim-layer-lang-java|
|
||||
45. lang#javascript.....................|SpaceVim-layer-lang-javascript|
|
||||
46. lang#json.................................|SpaceVim-layer-lang-json|
|
||||
47. lang#julia...............................|SpaceVim-layer-lang-julia|
|
||||
48. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
|
||||
49. lang#livescript.....................|SpaceVim-layer-lang-livescript|
|
||||
50. lang#lua...................................|SpaceVim-layer-lang-lua|
|
||||
51. lang#moonscript.....................|SpaceVim-layer-lang-moonscript|
|
||||
52. lang#nim...................................|SpaceVim-layer-lang-nim|
|
||||
53. lang#nix...................................|SpaceVim-layer-lang-nix|
|
||||
54. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
||||
55. lang#pact.................................|SpaceVim-layer-lang-pact|
|
||||
56. lang#php...................................|SpaceVim-layer-lang-php|
|
||||
57. lang#pony.................................|SpaceVim-layer-lang-pony|
|
||||
58. lang#processing.....................|SpaceVim-layer-lang-processing|
|
||||
59. lang#prolog.............................|SpaceVim-layer-lang-prolog|
|
||||
60. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||
61. lang#python.............................|SpaceVim-layer-lang-python|
|
||||
62. lang#racket.............................|SpaceVim-layer-lang-racket|
|
||||
63. lang#racket................................|SpaceVim-layer-lang-red|
|
||||
64. lang#ring....................................|SpaceVim-layer-lang-r|
|
||||
65. lang#ring.................................|SpaceVim-layer-lang-ring|
|
||||
66. lang#ruby.................................|SpaceVim-layer-lang-ruby|
|
||||
67. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||
68. lang#scala...............................|SpaceVim-layer-lang-scala|
|
||||
69. lang#scheme.............................|SpaceVim-layer-lang-scheme|
|
||||
70. lang#sh.....................................|SpaceVim-layer-lang-sh|
|
||||
71. lang#swig................................|SpaceVim-layer-lang-swift|
|
||||
72. lang#swig.................................|SpaceVim-layer-lang-swig|
|
||||
73. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
||||
74. lang#toml.................................|SpaceVim-layer-lang-toml|
|
||||
75. lang#typescript.....................|SpaceVim-layer-lang-typescript|
|
||||
76. lang#v.......................................|SpaceVim-layer-lang-v|
|
||||
77. lang#vbnet...............................|SpaceVim-layer-lang-vbnet|
|
||||
78. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||
79. lang#xquery.............................|SpaceVim-layer-lang-xquery|
|
||||
80. language server protocol........................|SpaceVim-layer-lsp|
|
||||
81. leaderf.....................................|SpaceVim-layer-leaderf|
|
||||
82. operator...................................|SpaceVim-layer-operator|
|
||||
83. shell.........................................|SpaceVim-layer-shell|
|
||||
84. test...........................................|SpaceVim-layer-test|
|
||||
85. tmux...........................................|SpaceVim-layer-tmux|
|
||||
86. tools#dash...............................|SpaceVim-layer-tools-dash|
|
||||
87. tools#zeal...............................|SpaceVim-layer-tools-zeal|
|
||||
7. Usage....................................................|SpaceVim-usage|
|
||||
1. custom_plugins........................|SpaceVim-usage-custom_plugins|
|
||||
2. tasks..........................................|SpaceVim-usage-tasks|
|
||||
@ -1754,6 +1755,25 @@ INTRO
|
||||
|
||||
The lang#dockerfile layer provides syntax highlighting for dockerfile.
|
||||
|
||||
==============================================================================
|
||||
LANG#EIFFEL *SpaceVim-layer-lang-eiffel*
|
||||
|
||||
This layer is for lang#eiffel development, disabled by default, to enable this
|
||||
layer, add following snippet to your SpaceVim configuration file.
|
||||
>
|
||||
[[layers]]
|
||||
name = 'lang#eiffel'
|
||||
<
|
||||
|
||||
KEY BINDINGS
|
||||
|
||||
>
|
||||
Key Function
|
||||
-----------------------------
|
||||
SPC l
|
||||
<
|
||||
|
||||
|
||||
==============================================================================
|
||||
LANG#ELIXIR *SpaceVim-layer-lang-elixir*
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
<head>
|
||||
<title>{{ page.title }} | SpaceVim</title>
|
||||
<meta name="baidu-site-verification" content="AN14j6xQVd" />
|
||||
<!-- This is for google search console -->
|
||||
<meta name="google-site-verification" content="2QrXyd7Wz5_ahXqefiYC_4-HvynQrefWDWORb7EjLCU" />
|
||||
<meta name="yandex-verification" content="8de09d07572b8dcc" />
|
||||
<meta name="author" content="Shidong Wang" />
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
|
@ -100,6 +100,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
|
||||
| [lang#d](lang/d/) | 这一模块为 d 开发提供支持,包括语法高亮、自动补全、一键运行等特性。 |
|
||||
| [lang#dart](lang/dart/) | 这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。 |
|
||||
| [lang#eiffel](lang/eiffel/) | 这一模块为 eiffel 开发提供支持,包括语法高亮、对齐等特性。 |
|
||||
| [lang#elixir](lang/elixir/) | 这一模块为 SpaceVim 提供了 Elixir 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||
| [lang#elm](lang/elm/) | 这一模块为 SpaceVim 提供了 Elm 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||
| [lang#erlang](lang/erlang/) | 这一模块为 Erlang 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||
@ -131,6 +132,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
|
||||
| [lang#lua](lang/lua/) | 这一模块为 Lua 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||
| [lang#markdown](lang/markdown/) | 这一模块为 Markdown 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
||||
| [lang#matlab](lang/matlab/) | 该模块为 SpaceVim 提供了 matlab 语言开发支持,包括语法高亮。 |
|
||||
| [lang#moonscript](lang/moonscript/) | 这一模块为 moonscript 开发提供支持,包括交互式编程、一键运行等特性。 |
|
||||
| [lang#nim](lang/nim/) | 该模块为 SpaceVim 提供 Nim 开发支持,包括语法高亮、代码补全、编译运行以及交互式编程等功能。 |
|
||||
| [lang#ocaml](lang/ocaml/) | 这一模块为 OCaml 开发提供了支持,包括语法高亮、代码补全、以及定义处跳转等功能。 |
|
||||
| [lang#pact](lang/pact/) | 这一模块为 pact 开发提供支持,包括交互式编程、一键运行等特性。 |
|
||||
|
34
docs/cn/layers/lang/eiffel.md
Normal file
34
docs/cn/layers/lang/eiffel.md
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
title: "SpaceVim lang#eiffel 模块"
|
||||
description: "这一模块为 eiffel 开发提供支持,包括语法高亮、对齐等特性。"
|
||||
lang: zh
|
||||
---
|
||||
|
||||
# [可用模块](../../) >> lang#eiffel
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [模块简介](#模块简介)
|
||||
- [启用模块](#启用模块)
|
||||
- [快捷键](#快捷键)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## 模块简介
|
||||
|
||||
这一模块为在 SpaceVim 中进行 eiffel 开发提供了支持。
|
||||
|
||||
## 启用模块
|
||||
|
||||
可通过在配置文件内加入如下配置来启用该模块:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#eiffel"
|
||||
```
|
||||
|
||||
## 快捷键
|
||||
|
||||
| 快捷键 | 功能描述 |
|
||||
| --------- | ----------------------- |
|
||||
| `SPC l c` | 异步执行命令 `eclean .` |
|
@ -107,6 +107,7 @@ Some layers are enabled by default. The following example shows how to disable `
|
||||
| [lang#d](lang/d/) | This layer is for d development, provide syntax checking, code runner support for d file. |
|
||||
| [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 |
|
||||
| [lang#eiffel](lang/eiffel/) | This layer is for eiffel development, provides syntax highlighting, indent for eiffel file. |
|
||||
| [lang#elixir](lang/elixir/) | This layer is for Elixir development, provide autocompletion, syntax checking, code format for Elixir file. |
|
||||
| [lang#elm](lang/elm/) | This layer is for Elm development, provide autocompletion, syntax checking, code format for Elm file. |
|
||||
| [lang#erlang](lang/erlang/) | This layer is for Erlang development, provide autocompletion, syntax checking, code format for Erlang file. |
|
||||
@ -139,6 +140,7 @@ Some layers are enabled by default. The following example shows how to disable `
|
||||
| [lang#lua](lang/lua/) | This layer is for Lua development, provide autocompletion, syntax checking, code format for Lua file. |
|
||||
| [lang#markdown](lang/markdown/) | Edit markdown within vim, autopreview markdown in the default browser, with this layer you can also format markdown file. |
|
||||
| [lang#matlab](lang/matlab/) | This layer adds matlab language support to SpaceVim, including syntax highlighting. |
|
||||
| [lang#moonscript](lang/moonscript/) | This layer is for moonscript development, provide syntax checking, code runner and repl support for moonscript file. |
|
||||
| [lang#nim](lang/nim/) | This layer adds Nim language support to SpaceVim |
|
||||
| [lang#nix](lang/nix/) | This layer adds Nix language support to SpaceVim. |
|
||||
| [lang#ocaml](lang/ocaml/) | This layer is for OCaml development, provide autocompletion, syntax checking, code format for OCaml file. |
|
||||
|
33
docs/layers/lang/eiffel.md
Normal file
33
docs/layers/lang/eiffel.md
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
title: "SpaceVim lang#eiffel layer"
|
||||
description: "This layer is for eiffel development, provides syntax highlighting, indent for eiffel file."
|
||||
---
|
||||
|
||||
# [Available Layers](../../) >> lang#eiffel
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Key bidnings](#key-bidnings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer is for eiffel development.
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, update custom configuration file with:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#eiffel"
|
||||
```
|
||||
|
||||
## Key bidnings
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ------------------------------------- |
|
||||
| `SPC l c` | run `eclean .` command asynchronously |
|
Loading…
x
Reference in New Issue
Block a user