add nix formatter
This commit is contained in:
parent
704508266b
commit
3b3305787f
|
@ -7,9 +7,6 @@
|
|||
"depth": 0,
|
||||
"workers": 3
|
||||
},
|
||||
"formatting": {
|
||||
"command": "nixpkgs-fmt"
|
||||
},
|
||||
"options": {
|
||||
"enable": true,
|
||||
"target": {
|
||||
|
|
|
@ -10,6 +10,7 @@ null_ls.setup({
|
|||
formatting.prettier,
|
||||
formatting.stylua,
|
||||
formatting.csharpier,
|
||||
formatting.alejandra
|
||||
diagnostics.cpplint,
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
|
|
|
@ -11,7 +11,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
alejandra
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
unstable.nixd
|
||||
nixpkgs-fmt
|
||||
alejandra
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue