aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/phpactor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/phpactor.lua')
-rw-r--r--lsp/phpactor.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/lsp/phpactor.lua b/lsp/phpactor.lua
index 9b7d3d82..41f6921d 100644
--- a/lsp/phpactor.lua
+++ b/lsp/phpactor.lua
@@ -7,12 +7,6 @@
return {
cmd = { 'phpactor', 'language-server' },
filetypes = { 'php' },
- root_dir = function(bufnr, on_dir)
- local fname = vim.api.nvim_buf_get_name(bufnr)
- local cwd = assert(vim.uv.cwd())
- local root = vim.fs.root(fname, { 'composer.json', '.git', '.phpactor.json', '.phpactor.yml' })
-
- -- prefer cwd if root is a descendant
- on_dir(root and vim.fs.relpath(cwd, root) and cwd)
- end,
+ root_markers = { 'composer.json', '.git', '.phpactor.json', '.phpactor.yml' },
+ workspace_required = true,
}