You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not completing standard PHP functions in nvim #2949
When I start typing getcwd I don't get any suggestion for that nor explode, and other standard functions except the date_* functions and some others. Seems to be the same as #2754.
Is it going to be fixed anytime soon? it is basically unusable as an LSP like this.
I used it through lazyvim, idk where the cli is installed which I would need to rebuild the index. Since I needed a quick switch I just switched to intelephense for now. I might try to do it when I have some free time. Thanks for your response!
@MightyCoderX Since LazyVim is using Mason, phpactor should be installed in ~/.local/share/nvim/mason/packages/phpactor/. From there i linked it to ~/.local/bin/. This is also mentioned in the docs here.
I also had this issue with nvim saying that it can't find the php functions. after running index:clear they started working again.
Activity
mamazu commentedon Nov 3, 2025
What version of phpactor are you using. I get completions and docs for the
getcwdfunction:dantleech commentedon Nov 4, 2025
You might try rebuilding the index: #2813 (comment)
MightyCoderX commentedon Nov 17, 2025
I used it through lazyvim, idk where the cli is installed which I would need to rebuild the index. Since I needed a quick switch I just switched to intelephense for now. I might try to do it when I have some free time. Thanks for your response!
draconivis commentedon Nov 28, 2025
@MightyCoderX Since LazyVim is using Mason, phpactor should be installed in
~/.local/share/nvim/mason/packages/phpactor/. From there i linked it to~/.local/bin/. This is also mentioned in the docs here.I also had this issue with nvim saying that it can't find the php functions. after running
index:clearthey started working again.