Add nixpkgs-fmt fixer.

This commit adds a fixer for the Nix language, nixpkgs-fmt
(https://github.com/nix-community/nixpkgs-fmt).
This commit is contained in:
David Wood
2019-08-26 19:21:07 +01:00
committed by David Wood
parent 73812c3e41
commit 6aeb462171
7 changed files with 69 additions and 0 deletions
+5
View File
@@ -335,6 +335,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['ada'],
\ 'description': 'Format Ada files with gnatpp.',
\ },
\ 'nixpkgs-fmt': {
\ 'function': 'ale#fixers#nixpkgsfmt#Fix',
\ 'suggested_filetypes': ['nix'],
\ 'description': 'A formatter for Nix code',
\ },
\}
" Reset the function registry to the default entries.