Skip to content

Commit edfbd85

Browse files
Logan LangLogan Lang
authored andcommitted
Add clang-format for c/c++ files
1 parent 22ca799 commit edfbd85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ require('lazy').setup({
785785
end,
786786
formatters_by_ft = {
787787
lua = { 'stylua' },
788+
c = { 'clang-format' },
789+
cpp = { 'clang-format' },
788790
-- Conform can also run multiple formatters sequentially
789791
-- python = { "isort", "black" },
790792
--

0 commit comments

Comments
 (0)