diff options
| author | Caleb White <cdwhite3@pm.me> | 2025-06-25 07:39:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-25 05:39:03 -0700 |
| commit | 477f412973484b4de20ae70c142e28a5790936a5 (patch) | |
| tree | 89df99ebc1798c1b5c457d5fa0e2911506f90cf0 /lsp/phpactor.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar.gz nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar.bz2 nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar.lz nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar.xz nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.tar.zst nvim-lspconfig-477f412973484b4de20ae70c142e28a5790936a5.zip | |
fix: phpactor root markers precedence #3928
This fixes the precedence of root markers for phpactor. When opening
a vendor file, a new lsp workspace was being created in the context of
the vendor directory, which causes failures because there's no vendor/
directory in the workspace root and therefor the lsp cannot find
any of the symbols.
Diffstat (limited to 'lsp/phpactor.lua')
| -rw-r--r-- | lsp/phpactor.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/phpactor.lua b/lsp/phpactor.lua index 41f6921d..7116e264 100644 --- a/lsp/phpactor.lua +++ b/lsp/phpactor.lua @@ -7,6 +7,6 @@ return { cmd = { 'phpactor', 'language-server' }, filetypes = { 'php' }, - root_markers = { 'composer.json', '.git', '.phpactor.json', '.phpactor.yml' }, + root_markers = { '.git', 'composer.json', '.phpactor.json', '.phpactor.yml' }, workspace_required = true, } |
