From 7faf38e5651554851520d29381b237323c4a32e9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 24 Nov 2020 20:32:39 +0900 Subject: Update .clang-format: add some options --- .clang-format | 6 ++++-- .vimrc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index 908be42..7045a64 100644 --- a/.clang-format +++ b/.clang-format @@ -4,12 +4,14 @@ Language: Cpp Standard: Latest BasedOnStyle: LLVM -IndentWidth: 4 -ColumnLimit: 120 AccessModifierOffset: -4 AlignEscapedNewlines: DontAlign AlignTrailingComments: false +AllowShortFunctionsOnASingleLine: None +AlwaysBreakTemplateDeclarations: Yes BreakStringLiterals: false +ColumnLimit: 120 +IndentWidth: 4 KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: 1 PointerAlignment: Left diff --git a/.vimrc b/.vimrc index 9582c7b..5cc29d5 100644 --- a/.vimrc +++ b/.vimrc @@ -941,7 +941,7 @@ function! s:smart_open(command) abort if &l:textwidth > 0 execute 'vertical resize' &l:textwidth endif - " Help tags are often rust-justfied, moving the cursor to BoL. + " Help tags are often right-justfied, moving the cursor to BoL. normal! 0 endif endfunction -- cgit v1.2.3-70-g09d2