aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2020-11-24 20:32:39 +0900
committernsfisis <nsfisis@gmail.com>2020-11-24 20:32:39 +0900
commit7faf38e5651554851520d29381b237323c4a32e9 (patch)
tree9e37b811cf9fbaf8374eba236d316308fc1b728a
parent58920da73489a5a4da37d4082aee4b762983c402 (diff)
downloaddotfiles-7faf38e5651554851520d29381b237323c4a32e9.tar.gz
dotfiles-7faf38e5651554851520d29381b237323c4a32e9.tar.zst
dotfiles-7faf38e5651554851520d29381b237323c4a32e9.zip
Update .clang-format: add some options
-rw-r--r--.clang-format6
-rw-r--r--.vimrc2
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