Enable clang_format only for cpp and c

main
Ensar Sarajčić 2022-06-25 16:41:43 +02:00
parent 0220062caf
commit 2058691eeb
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ null_ls.setup({
null_ls.builtins.diagnostics.ktlint,
-- C++ and C
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.clang_format.with({
filetypes = { "cpp", "c" },
}),
-- Cmake
null_ls.builtins.formatting.cmake_format,