1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(neovim): use editorconfig for stripping trailiing whitespace

This commit is contained in:
2023-08-01 17:09:59 +02:00
parent 747402bca4
commit b5f50967b4
3 changed files with 18 additions and 13 deletions

View File

@@ -8,6 +8,22 @@
environment.shellAliases.vim = "nvim";
environment.shellAliases.view = "nvim -R";
home-manager.users.me = {
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
trim_trailing_whitespace = true;
insert_final_newline = true;
indent_style = "space";
indent_size = 2;
};
};
};
};
environment.systemPackages = [
(pkgs.writers.writeDashBin "vim" ''neovim "$@"'')
niveumPackages.vim