update
This commit is contained in:
@@ -33,7 +33,10 @@ return {
|
||||
},
|
||||
formatters = {
|
||||
["clang-format"] = {
|
||||
args = { "--style={BasedOnStyle: LLVM, IndentWidth: 4, TabWidth: 4, UseTab: Never, ColumnLimit: 0}" },
|
||||
-- 用 prepend_args (不是 args!): 保留 conform 默认的 "-assume-filename $FILENAME".
|
||||
-- 若用 args 会覆盖默认值, 导致 clang-format 读 stdin 时丢失文件名 → 语言检测/样式查找出问题.
|
||||
-- 优先读项目 .clang-format 文件; 没有该文件时用此内联 4 空格样式兜底.
|
||||
prepend_args = { "--style={BasedOnStyle: LLVM, IndentWidth: 4, TabWidth: 4, UseTab: Never, ColumnLimit: 0}" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user