Skip to content

Help adding support for Nix lang needed #70

Answered by Wansmer
pogopaule asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

Problem 1:

{
  attrset_expression = {
    target_nodes = { 'binding_set' }, -- because target node for format is not attrset_expression, but binding_set
  },
  binding_set = u.set_preset_for_dict({
    both = {
      non_bracket_node = true, -- It will created empty framing nodes for get new line after '{' and before '}'
      separator = ';',
      last_separator = true,
    },
  }),
}

Problem 2:

Hmm, I see what all children of formals should be with same indents, but at the moment all inner indents calculating with first indent + shiftwidth.

Maximum what can be settings with TreeSJ it:

# from
  func1 =
    { foo, bar, blub, ... }:
    { };
# to
  func1 =
    { foo
      , bar
      

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@pogopaule
Comment options

@Wansmer
Comment options

Answer selected by pogopaule
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants