# $DOTFILES/.editorconfig

root = true

[*]
charset = utf-8
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{sh,zsh,zshrc,zshenv,bashrc}]
end_of_line = lf

[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.{json,toml,js,lua,yaml,yml}]
indent_size = 2
indent_style = space

[*.{bat}]
# Empty ruleset to skip global settings
# charset = gbk # Not available
# end_of_line = crlf

[*.nix]
indent_size = 2

