Skip to content
robz edited this page Mar 11, 2019 · 1 revision

Installing server

Follow these steps to install hhvm, which will also install hh_client: https://docs.hhvm.com/hhvm/installation/introduction

Registering in .vimrc

if executable('hh_client')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'hh_client',
        \ 'cmd': {server_info->['hh_client', 'lsp']},
        \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), '.hhconfig'))},
        \ 'whitelist': ['php'],
        \ })
endif