summaryrefslogtreecommitdiff
path: root/lua/formatting.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/formatting.lua')
-rw-r--r--lua/formatting.lua4
1 files changed, 4 insertions, 0 deletions
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