mattn / efm-langserver

General purpose Language Server
MIT License
1.32k stars 59 forks source link

PHP issue #271

Open kylix31 opened 8 months ago

kylix31 commented 8 months ago

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