Skip to content

Bug: nix filetype #1

@kkharji

Description

@kkharji

Hey @AckslD, awesome work, I like the concept of it a lot.

I've gave it a try and at first, it appended , to the end of the list where it shouldn't have because of how nix syntax.
So I've create a setting function that let's me decide when to skip adding comma to the end of the list like so:

settings = {
...
    add_last_colon_if_missing = function ()
        return true
    end,

}
local add_last_colon_if_missing = function(end_pos)
    if not settings.add_last_colon_if_missing() then return end
    ....
end

I'm sure you have way better idea for this issue.

But the real issue I have is how revj transforms this

  buildInputs = [ python3 python37Packages.numpy postgresql ];

to this

  buildInputs = [
      
      python3 python37Packages.numpy postgresql ];

Where it should've transformed it to this:

  buildInputs = [
      python3 
      python37Packages.numpy 
      postgresql 
  ];

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions