Add clang-format for c++

This commit is contained in:
Jan Hamal Dvořák 2025-07-20 17:20:48 +02:00
parent 4322dee13c
commit 9b3d6c7ebf

View file

@ -69,7 +69,7 @@ require("nvim-treesitter.configs").setup {
require("nvim-format-buffer").setup({
verbose = false,
format_rules = {
{ pattern = { "*.c", "*.h" }, command = "clang-format" },
{ pattern = { "*.c", "*.h", "*.cpp", "*.hpp" }, command = "clang-format" },
{
pattern = { "*.js", "*.mjs", "*.ts", "*.mts", "*.cjs", "*.tsx", "*.vue", "*.css" },
command = function()