Add clang-format for c++
This commit is contained in:
parent
4322dee13c
commit
9b3d6c7ebf
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue