1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 17:50:05 +08:00

Add php runner

This commit is contained in:
wsdjeg 2017-12-25 20:41:41 +08:00
parent 4bbd20520d
commit 06fa149581

View File

@ -39,6 +39,7 @@ function! SpaceVim#layers#lang#php#plugins() abort
endfunction endfunction
function! SpaceVim#layers#lang#php#config() abort function! SpaceVim#layers#lang#php#config() abort
call SpaceVim#plugins#runner#reg_runner('php', 'php %s')
call SpaceVim#mapping#space#regesit_lang_mappings('php', call SpaceVim#mapping#space#regesit_lang_mappings('php',
\ funcref('s:on_ft')) \ funcref('s:on_ft'))
if SpaceVim#layers#lsp#check_filetype('php') if SpaceVim#layers#lsp#check_filetype('php')
@ -57,4 +58,7 @@ function! s:on_ft() abort
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'e'], call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'e'],
\ 'call SpaceVim#lsp#rename()', 'rename symbol', 1) \ 'call SpaceVim#lsp#rename()', 'rename symbol', 1)
endif endif
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
\ 'call SpaceVim#plugins#runner#open()',
\ 'execute current file', 1)
endfunction endfunction