Commit: c9712993fcc9cef96ca28c6b6c08c31841633b13
Parent: e165ea404cd7662b03d2202ec866ca532b694ff2
Author: Randy Palamar
Date: Sun, 5 Jan 2025 15:09:15 -0700
add clang-format as default c/c++ fixer
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/init.lua b/init.lua
@@ -1,3 +1,4 @@
+-- See LICENSE for copyright details
local lint = {}
lint.linters = {}
@@ -10,6 +11,8 @@ lint.linters["python"] = {"black --quiet --check -", "isort --check -"}
lint.linters["rust"] = {"rustfmt --check", "clippy-driver -"}
lint.fixers = {}
+lint.fixers["c"] = {"clang-format -fallback-style=none"}
+lint.fixers["cpp"] = {"clang-format -fallback-style=none"}
lint.fixers["json"] = {"jq"}
lint.fixers["meson"] = {"muon fmt -"}
lint.fixers["python"] = {"black -", "isort -"}