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()