aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/phpactor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/server_configurations/phpactor.lua')
-rw-r--r--lua/lspconfig/server_configurations/phpactor.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/phpactor.lua b/lua/lspconfig/server_configurations/phpactor.lua
index 5a1f0d10..b3c40093 100644
--- a/lua/lspconfig/server_configurations/phpactor.lua
+++ b/lua/lspconfig/server_configurations/phpactor.lua
@@ -6,7 +6,7 @@ return {
filetypes = { 'php' },
root_dir = function(pattern)
local cwd = vim.loop.cwd()
- local root = util.root_pattern('composer.json', '.git')(pattern)
+ local root = util.root_pattern('composer.json', '.git', '.phpactor.json', '.phpactor.yml')(pattern)
-- prefer cwd if root is a descendant
return util.path.is_descendant(cwd, root) and cwd or root