summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hhvm.lua
blob: 0e8ac5c5bb76bf397895a15ceca0ec64d9afa0c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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")]],
    },
  },
}