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
|
||||
let plugins = []
|
||||
call add(plugins, ['vim-ruby/vim-ruby', { 'on_ft' : 'ruby'}])
|
||||
return plugins
|
||||
return [
|
||||
\ ['vim-ruby/vim-ruby', { 'on_ft' : 'ruby' }]
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user