Closed aszlig closed 5 years ago
Did you get anywhere with the other issue?
@LnL7: Not yet, just woke up :sleepy:
I'll merge this already since it's already an improvement.
I think this added a regression:
{
src = { # now write enter };
}
This will extra indent the line with src
for every newline that is inserted by two spaces:
{
src = {
};
}
{
src = {
};
}
Are you sure this is after the pr?
Indeed vim-polyglot needs an update: https://github.com/sheerun/vim-polyglot/blob/master/indent/nix.vim#L57
This adds tests plus a few fixes for indentation, mainly around
let
bindings.For example things like this should now be indented correctly: