feat(nvim): use clang_format to format c/c++ codes

This commit is contained in:
2026-04-02 13:29:27 -04:00
parent 8b32b9692b
commit c79f5d8a43
+2
View File
@@ -1094,6 +1094,8 @@ return {
}, },
}, },
formatters_by_ft = { formatters_by_ft = {
c = { "clang_format" },
cpp = { "clang_format" },
lua = { 'stylua' }, lua = { 'stylua' },
go = { "goimports", "gofmt" }, go = { "goimports", "gofmt" },
rust = { "dprint", "rustfmt", lsp_format = "fallback" }, rust = { "dprint", "rustfmt", lsp_format = "fallback" },