mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
Added a runner for Ruby language
Added a runner for Ruby language.
This commit is contained in:
parent
702504768b
commit
df83680801
@ -7,12 +7,16 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#ruby#plugins() abort
|
function! SpaceVim#layers#lang#ruby#plugins() abort
|
||||||
let plugins = []
|
return [
|
||||||
call add(plugins, ['vim-ruby/vim-ruby', { 'on_ft' : 'ruby'}])
|
\ ['vim-ruby/vim-ruby', { 'on_ft' : 'ruby' }]
|
||||||
return plugins
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#ruby#config() abort
|
function! SpaceVim#layers#lang#ruby#config() abort
|
||||||
|
call SpaceVim#plugins#runner#reg_runner('ruby', 'ruby %s')
|
||||||
|
call SpaceVim#mapping#space#regesit_lang_mappings('ruby', funcref('s:language_specified_mappings'))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:language_specified_mappings() abort
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l', 'r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user