Added
-
A Style Guide,
explaining why certain decisions were taken
and why they are optimal
from a productive Nix hacker point of view.This guide is a work in progress,
but the aim is that it eventually documents
all of the aspects of the Nix language,
so that we all have the peace of mind
that comes from knowing that the style in Alejandra
is the way it is for a reason. -
Integration guides for: Neovim and GNU Emacs.
-
Published Alejandra as a crate,
and added API documentation
so other tools and integrations can be built in top of it.
Changed
-
Now running:
$ alejandra -
formats stdin,
as POSIX
suggests. -
Comments are now indented by a multiple of 2
issues/294:Previously
(notice how some lines are indented with 3 and 5 spaces):/* Bla bla bla. More bla: - Bla bla - Bla */ 123
Now (all lines are indented to 2 and 4 spaces):
/* Bla bla bla. More bla: - Bla bla - Bla */ 123
This makes it easier to write comments on major code editors,
where a<TAB>
(or<Shift>+<Tab>
)
moves the cursor/content to the next multiple of 2,
and so indenting the comment contents
to an odd number of spaces (like 3, 5, 7)
is uncomfortable and unproductive.This change also allows cooperation
with other tools
like EditorConfig,
to further exercise good practices over a codebase. -
Updated dependencies to its latest version.
Fixed
- Empty lines in comments are now effectively empty,
avoiding git from warning about extra whitespace:
issues/314.
Pull Requests
- feat: release 1.5.0 by @kamadorueda in #304
- docs: add neovim integration by @kamadorueda in #305
- feat: simplify nix stable installation by @kamadorueda in #307
- feat: rename alejandra_engine to alejandra by @kamadorueda in #308
- docs: null-ls for neovim by @kamadorueda in #309
- docs: emacs integration by @kamadorueda in #311
- docs: use proper capitalization by @kamadorueda in #312
- docs: add style guide by @kamadorueda in #313
- Use clap-derive by @Sciencentistguy in #315
- refactor: use more rustfmt rules by @kamadorueda in #316
- feat: respect - for stdin by @kamadorueda in #317
- docs: update changelog by @kamadorueda in #318
- docs: style guide of functions with destructuring by @kamadorueda in #319
- docs: link style guide in the readme by @kamadorueda in #320
- docs: add a contributing file [skip ci] by @kamadorueda in #321
- docs: add a code of conduct [skip ci] by @kamadorueda in #322
- docs: link discussions [skip ci] by @kamadorueda in #323
- feat: conform comments to editorconfig with
indent_size = 2
by @blaggacao in #324 - feat: document crate by @kamadorueda in #325
- docs: update changelog [skip ci] by @kamadorueda in #326
- feat: update dependencies by @kamadorueda in #327
New Contributors
- @Sciencentistguy made their first contribution in #315
Full Changelog: 1.5.0...2.0.0