Initial commit: Modular Clang C++ Nix environment and problem files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{ pkgs, treefmt-nix }:
|
||||
treefmt-nix.lib.evalModule pkgs {
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
# Configure individual formatters
|
||||
programs = {
|
||||
# Nix formatter
|
||||
nixpkgs-fmt.enable = true;
|
||||
|
||||
# C++ formatter
|
||||
clang-format.enable = true;
|
||||
};
|
||||
|
||||
# Optional settings
|
||||
settings.formatter.clang-format.includes = [ "*.cpp" "*.h" "*.hpp" "*.c" ];
|
||||
}
|
||||
Reference in New Issue
Block a user