From 3c238894c5b6f15c5f27cea8bd3785eb0f1ebf0f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 11:39:25 +0200 Subject: add config --- lua/formatting.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lua/formatting.lua (limited to 'lua/formatting.lua') diff --git a/lua/formatting.lua b/lua/formatting.lua new file mode 100644 index 0000000..22c3a32 --- /dev/null +++ b/lua/formatting.lua @@ -0,0 +1,4 @@ +-- Clang-format +vim.g["clang_format#code_style"] = "llvm" +vim.g["clang_format#detect_style_file"] = 1 +vim.g["clang_format#auto_format"] = 1 -- cgit v1.2.3-18-g5258