1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-26 04:00:29 +08:00
2021-05-07 19:29:32 +08:00

43 lines
1.4 KiB
VimL

"=============================================================================
" eiffel.vim --- Eiffel language layer
" Copyright (c) 2016-2020 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 c run eclean
" <
"
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