diff options
| author | Anton Kastritskii <antonk52@meta.com> | 2026-06-19 16:00:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-19 11:00:13 -0400 |
| commit | 65a775d61d9cf11397d9bb61aaa16988c0ea24df (patch) | |
| tree | c5366d850ab6c61228e286771763a4a0d3a9f0cd | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar.gz nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar.bz2 nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar.lz nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar.xz nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.tar.zst nvim-lspconfig-65a775d61d9cf11397d9bb61aaa16988c0ea24df.zip | |
fix(hhvm): run server in project root #4456
| -rw-r--r-- | lsp/hhvm.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lsp/hhvm.lua b/lsp/hhvm.lua index 2016614e..210bdbd1 100644 --- a/lsp/hhvm.lua +++ b/lsp/hhvm.lua @@ -8,7 +8,13 @@ ---@type vim.lsp.Config return { - cmd = { 'hh_client', 'lsp' }, + cmd = function(dispatchers, config) + return vim.lsp.rpc.start({ 'hh_client', 'lsp', '--from', 'neovim' }, dispatchers, { + -- cwd should be the same as project root, not neovim's process cwd + cwd = config.root_dir, + }) + end, + filetypes = { 'php', 'hack' }, root_markers = { '.hhconfig' }, } |
