mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate editorconfig
This commit is contained in:
@@ -11,6 +11,7 @@ in
|
||||
./asdf
|
||||
./bat
|
||||
./ctags
|
||||
./editorconfig
|
||||
./gnupg
|
||||
./hammerspoon
|
||||
./karabiner
|
||||
|
||||
24
nix/home/editorconfig/default.nix
Normal file
24
nix/home/editorconfig/default.nix
Normal 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 ];
|
||||
}
|
||||
Reference in New Issue
Block a user