feat(nix): migrate editorconfig

This commit is contained in:
Stefan Imhoff
2024-07-12 20:29:44 +02:00
parent 2c85f3126e
commit 4204986e77
5 changed files with 25 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ in
./asdf
./bat
./ctags
./editorconfig
./gnupg
./hammerspoon
./karabiner

View File

@@ -0,0 +1,24 @@
{ pkgs, ... }:
{
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
indent_style = "tab";
insert_final_newline = true;
trim_trailing_whitespace = true;
};
"*.{md,markdown,pandoc}" = {
trim_trailing_whitespace = false;
};
"Makefile" = {
indent_style = "tab";
};
};
};
home.packages = [ pkgs.editorconfig-core-c ];
}