1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

Add php_lsp key bindings

This commit is contained in:
wsdjeg 2017-12-23 21:03:01 +08:00
parent 87c4d8d12e
commit e2f4fbb6a3

View File

@ -39,5 +39,18 @@ function! SpaceVim#layers#lang#php#plugins() abort
endfunction
function! SpaceVim#layers#lang#php#config() abort
call SpaceVim#mapping#space#regesit_lang_mappings('php',
\ funcref('s:on_ft'))
endfunction
function! s:on_ft() abort
if SpaceVim#layers#lsp#check_filetype('php')
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
\ 'call SpaceVim#lsp#show_doc()', 'show_document', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'e'],
\ 'call SpaceVim#lsp#rename()', 'rename symbol', 1)
endif
endfunction