add nix formatter
This commit is contained in:
parent
704508266b
commit
3b3305787f
|
@ -7,9 +7,6 @@
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"workers": 3
|
"workers": 3
|
||||||
},
|
},
|
||||||
"formatting": {
|
|
||||||
"command": "nixpkgs-fmt"
|
|
||||||
},
|
|
||||||
"options": {
|
"options": {
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"target": {
|
"target": {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue