Skip to content

nix fmt support #70

@opeik

Description

@opeik

Hi there,

I'm using vscode-nix-ide which breaks if you ask nil to format with nix fmt. Instead of formatting the file, it clears it instead. This seems to be caused by nix fmt not accepting input from stdin.

On a side note, it would be cool if nil could use self.formatter."${system}" by default.

VSCode configuration
"nix.enableLanguageServer": true,
"nix.serverPath": "nil",
"nix.serverSettings": {
  "nil": {
    "formatting": {
      "command": ["nix", "fmt"]
    }
  }
},
App versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCatagory: support questions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions