home: Configure editorconfig

This commit is contained in:
Alexander Kobjolke 2024-02-04 23:41:24 +01:00
parent 6d49c9127d
commit d4b8835050
2 changed files with 23 additions and 1 deletions

View file

@ -10,7 +10,11 @@ let
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in {
imports = [ ./programs/neovim/default.nix ./programs/emacs/default.nix ];
imports = [
./programs/neovim/default.nix
./programs/emacs/default.nix
./programs/editorconfig
];
programs.home-manager.enable = true;
home = {

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
{
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
trim_trailing_whitespace = true;
insert_final_newline = true;
max_line_width = 78;
indent_style = "space";
indent_size = 2;
};
};
};
}