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, "depth": 0,
"workers": 3 "workers": 3
}, },
"formatting": {
"command": "nixpkgs-fmt"
},
"options": { "options": {
"enable": true, "enable": true,
"target": { "target": {

View file

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

View file

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

View file

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