add nix formatter

This commit is contained in:
Sakooooo 2023-08-06 17:57:50 +03:00
parent 704508266b
commit 3b3305787f
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 3 additions and 5 deletions

View file

@ -7,9 +7,6 @@
"depth": 0,
"workers": 3
},
"formatting": {
"command": "nixpkgs-fmt"
},
"options": {
"enable": true,
"target": {

View file

@ -10,6 +10,7 @@ null_ls.setup({
formatting.prettier,
formatting.stylua,
formatting.csharpier,
formatting.alejandra
diagnostics.cpplint,
},
on_attach = function(client, bufnr)

View file

@ -11,7 +11,7 @@ in
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
nil
nixpkgs-fmt
alejandra
];
};
}

View file

@ -15,7 +15,7 @@ in
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
unstable.nixd
nixpkgs-fmt
alejandra
];
};
}