From 70276615e10436d10e47c2c39bcb14ef75884985 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 19 Nov 2024 16:03:18 -0800 Subject: [PATCH] feat: add c/cpp formatter --- lua/plugins/conform.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 77ed8ed..79565b7 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -65,6 +65,8 @@ return { typst = { "typstyle" }, svelte = { "prettier" }, tex = { "latexindent" }, + cpp = { "clang-format", lsp_format = "fallback" }, + c = { "clang-format", lsp_format = "fallback" }, }, })