1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

fix(php): fix php gd key binding

close https://github.com/SpaceVim/SpaceVim/issues/4585
This commit is contained in:
wsdjeg 2022-03-31 00:24:22 +08:00
parent 54c5e8eb60
commit b519ea398c

View File

@ -57,6 +57,7 @@ function! SpaceVim#layers#lang#php#plugins() abort
call add(plugins, ['StanAngeloff/php.vim', { 'on_ft' : 'php'}])
call add(plugins, ['2072/PHP-Indenting-for-VIm', { 'on_ft' : 'php'}])
if SpaceVim#layers#lsp#check_filetype('php')
\ || SpaceVim#layers#lsp#check_server('phpactor')
call add(plugins, ['phpactor/phpactor', {'on_ft' : 'php', 'build' : 'composer install --no-dev -o'}])
else
if exists('*popup_create')
@ -81,6 +82,8 @@ function! SpaceVim#layers#lang#php#config() abort
call SpaceVim#mapping#space#regesit_lang_mappings('php',
\ function('s:on_ft'))
if SpaceVim#layers#lsp#check_filetype('php')
\ || SpaceVim#layers#lsp#check_server('phpactor')
\ || SpaceVim#layers#lsp#check_server('intelephense')
call SpaceVim#mapping#gd#add('php',
\ function('SpaceVim#lsp#go_to_def'))
endif