mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Add php runner
This commit is contained in:
parent
4bbd20520d
commit
06fa149581
@ -39,6 +39,7 @@ function! SpaceVim#layers#lang#php#plugins() abort
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#php#config() abort
|
||||
call SpaceVim#plugins#runner#reg_runner('php', 'php %s')
|
||||
call SpaceVim#mapping#space#regesit_lang_mappings('php',
|
||||
\ funcref('s:on_ft'))
|
||||
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#lsp#rename()', 'rename symbol', 1)
|
||||
endif
|
||||
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