From 00c59441c6097a21ef6e5e999907d71a74ea5c71 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 21 Feb 2022 15:31:29 +0000 Subject: feat: add hh_client for hhvm (#1712) --- lua/lspconfig/server_configurations/hhvm.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lua/lspconfig/server_configurations/hhvm.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2