From 1f621aba3728a621b83b3b697eae6caadae9d287 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 10 Feb 2021 10:21:16 +0100 Subject: [PATCH] feat: customize .editorconfig according to shfmt --- .editorconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.editorconfig b/.editorconfig index f805cc8c..1bcff392 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,6 +12,12 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true charset = utf-8 +indent_style = space +indent_size = 4 +switch_case_indent = true +function_next_line = false +binary_next_line = true +space_redirects = true # Match config files, set indent to spaces with width of eight. [*.{c,h}] @@ -22,6 +28,10 @@ indent_size = 8 [*.sh] indent_style = space indent_size = 4 +switch_case_indent = true +function_next_line = false +binary_next_line = true +space_redirects = true # Match xml man pages, set indent to spaces with width of two. [man/*.xml]