From 9b3d6c7ebf50bb917302bcb4ff0fde43ebf0ae18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Sun, 20 Jul 2025 17:20:48 +0200 Subject: [PATCH] Add clang-format for c++ --- lua/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/init.lua b/lua/init.lua index 9c40fe6..55dbd38 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -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()