Skip to content

Not completing standard PHP functions in nvim #2949

Open

Description

@MightyCoderX

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.

Activity

  1. mamazu commented on Nov 3, 2025

    @mamazu
    Contributor

    What version of phpactor are you using. I get completions and docs for the getcwd function:

    Image
  2. dantleech commented on Nov 4, 2025

    @dantleech
    Collaborator

    You might try rebuilding the index: #2813 (comment)

  3. MightyCoderX commented on Nov 17, 2025

    @MightyCoderX
    Author

    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!

  4. draconivis commented on Nov 28, 2025

    @draconivis

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions