Skip to content

PHP issue #271

@kylix31

Description

@kylix31

When i try to format a PHP file, I always get this error:

[ERROR][2023-11-27 17:59:45] ...-format/init.lua:205	"efm: 0: format for LanguageID not supported: php"

My current config:

    lsp_setup = {
      on_attach = on_attach,
      init_options = { documentFormatting = true, documentRangeFormatting = true },
      filetypes = { "php" },
      settings = {
        rootMarkers = { ".git/" },
        languages = {
          php = {
            formatCommand = "phpcbf",
            formatStdin = true,
          },
        },
      },
    }
❯ whereis phpcbf
phpcbf: /usr/bin/phpcbf

NVIM v0.9.4
efm-langserver 0.0.49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions