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

fix: NO-ISSUE Add indentation rules for let and attrset #13

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

akirak
Copy link
Contributor

@akirak akirak commented Nov 7, 2023

This PR adds some seemingly missing indentation rules.

Example indentation from

  inputs = {
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";| ⇐ cursor here
  };

to

  inputs = {
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    | ⇐ cursor here
  };

instead of indenting to

  inputs = {
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
| ⇐ cursor here
  };

Another example indentation from

  }: let
    supportedSystems = import systems;
    forAllSystems = nixpkgs-unstable.lib.genAttrs supportedSystems;| ⇐ cursor here
  in {

to

  }: let
    supportedSystems = import systems;
    forAllSystems = nixpkgs-unstable.lib.genAttrs supportedSystems;
    | ⇐ cursor here
  in {

instead of indenting to

  }: let
    supportedSystems = import systems;
    forAllSystems = nixpkgs-unstable.lib.genAttrs supportedSystems;
| ⇐ cursor here
  in {

@akirak akirak changed the title fix: Add indentation rules for let and attrset fix: NO-ISSUE Add indentation rules for let and attrset Nov 7, 2023
Copy link
Member

@purcell purcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@purcell
Copy link
Member

purcell commented Nov 7, 2023

Will go ahead and merge since this is trivial and a clean addition.

@purcell purcell merged commit 2dddc6e into nix-community:trunk Nov 7, 2023
@akirak akirak deleted the add-indentation-rules branch November 8, 2023 01:35
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

Successfully merging this pull request may close these issues.

2 participants