# Copyright 2026 Shota FUJI
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
spelling_language = en-US
trim_trailing_whitespace = true
insert_final_newline = true

[*.nix]
# nixfmt does not support tab indentation, as Nix's (the language) multiline string
# cannot handle tab indentation at this moment.
indent_style = space
indent_size = 2

[*.{zig,zon}]
# Zig cannot handle tab indentations.
indent_style = space
indent_size = 4

[*.elm]
# Elm cannot handle tab indentations, and elm-format cannot configure indent size.
indent_style = space
indent_size = 4
