diff options
| author | Anton <halloy52@gmail.com> | 2022-02-21 15:31:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-21 07:31:29 -0800 |
| commit | 00c59441c6097a21ef6e5e999907d71a74ea5c71 (patch) | |
| tree | 3f21ddc6536689006f76255703bf11f6febbbe8b /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar.gz nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar.bz2 nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar.lz nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar.xz nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.tar.zst nvim-lspconfig-00c59441c6097a21ef6e5e999907d71a74ea5c71.zip | |
feat: add hh_client for hhvm (#1712)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/hhvm.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/hhvm.lua b/lua/lspconfig/server_configurations/hhvm.lua new file mode 100644 index 00000000..b9fe3085 --- /dev/null +++ b/lua/lspconfig/server_configurations/hhvm.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = {'hh_client', 'lsp'}, + filetypes = { 'php', 'hack' }, + root_dir = util.root_pattern '.hhconfig', + }, + docs = { + description = [[ +Language server for programs written in Hack +https://hhvm.com/ +https://github.com/facebook/hhvm +See below for how to setup HHVM & typechecker: +https://docs.hhvm.com/hhvm/getting-started/getting-started + ]], + default_config = { + root_dir = [[root_pattern(".hhconfig")]], + }, + }, +} |
