mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
editorconfig: improve
This commit is contained in:
parent
2ca9cdd4da
commit
508bd87f09
1 changed files with 2 additions and 10 deletions
|
@ -1,21 +1,13 @@
|
||||||
# EditorConfig configuration for nix
|
|
||||||
# http://EditorConfig.org
|
|
||||||
|
|
||||||
# Top-most EditorConfig file
|
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
# Unix-style newlines with a newline ending every file, utf-8 charset
|
# Unix-style newlines with a newline ending every file, utf-8 charset
|
||||||
[*]
|
[*]
|
||||||
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
charset = utf-8
|
|
||||||
|
|
||||||
# Match nix files, set indent to spaces with width of two
|
# Match nix files, set indent to spaces with width of two
|
||||||
[*.nix]
|
[*.{nix,json,md}]
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.json]
|
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue