Skip to content

Nil: No formatter configured.Β #28

@estk

Description

@estk

My settings:

...
  "languages": {
    "Nix": {
      "language_servers": ["nixd", "!nil"],
      "formatter": {
        "external": {
          "command": "nixfmt"
        }
      }
    }
  },
  "lsp": {
    "nil": {
      "initialization_options": {
        "formatting": {
          "command": ["nixfmt"]
        }
      }
    },
  }
...

From the zed log

Caused by:
    No formatter configured. Set the nil.formatting.command LSP server setting.
2025-06-02T17:05:45-07:00 INFO  [project.lsp_format] Formatting via LSP
2025-06-02T17:05:45-07:00 ERROR [project::lsp_store] Formatting failed: failed to format via language server: No formatter configured. Set the nil.formatting.command LSP server setting.
2025-06-02T17:05:45-07:00 ERROR [editor] failed to format via language server

Caused by:
    No formatter configured. Set the nil.formatting.command LSP server setting

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