Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP issue #271

Open
kylix31 opened this issue Nov 27, 2023 · 0 comments
Open

PHP issue #271

kylix31 opened this issue Nov 27, 2023 · 0 comments

Comments

@kylix31
Copy link

kylix31 commented Nov 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant