summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins/autoformat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix/plugins/autoformat.lua')
-rw-r--r--lua/aotrix/plugins/autoformat.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/aotrix/plugins/autoformat.lua b/lua/aotrix/plugins/autoformat.lua
index 05ae2f9..c4f008f 100644
--- a/lua/aotrix/plugins/autoformat.lua
+++ b/lua/aotrix/plugins/autoformat.lua
@@ -2,17 +2,17 @@ return {
"stevearc/conform.nvim",
opts = {
notify_on_error = false,
- format_on_save = {timeout_ms = 500, lsp_fallback = true},
+ format_on_save = { timeout_ms = 500, lsp_fallback = true },
formatters_by_ft = {
- lua = {"lua-format"},
- cpp = {"clang_format"},
- cmake = {"cmake_format"}
+ lua = { "lua-format" },
+ cpp = { "clang_format" },
+ cmake = { "cmake_format" }
},
formatters = {
clang_format = {
- prepend_args = {'--style={BasedOnStyle: LLVM, IndentWidth: 4}'}
+ prepend_args = { '--style={BasedOnStyle: LLVM, IndentWidth: 4, ColumnLimit: 120}' }
},
- shfmt = {prepend_args = {'-i', '4'}}
+ shfmt = { prepend_args = { '-i', '4' } }
}
}
}