diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-25 01:42:24 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-25 01:47:29 +0200 |
commit | 68636ef01a9c3c758379d25dc85d68d649a156e2 (patch) | |
tree | ccda398a627cd08a4cd2e0a4537f147614712fb9 /after/plugin/conform.lua | |
parent | 4b90644bc355441d05fb1a217e7d828f1cfd77b8 (diff) |
checkpoint
Diffstat (limited to 'after/plugin/conform.lua')
-rw-r--r-- | after/plugin/conform.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/after/plugin/conform.lua b/after/plugin/conform.lua index 76f7dca..d233d3a 100644 --- a/after/plugin/conform.lua +++ b/after/plugin/conform.lua @@ -1,7 +1,9 @@ require("conform").setup({ formatters_by_ft = { lua = { "stylua" }, - html = { "prettier" }, + -- html = { "prettier" }, + go = { "goimports", "gofmt" }, + c = { "clang-format" }, }, format_on_save = { -- These options will be passed to conform.format() @@ -9,3 +11,10 @@ require("conform").setup({ lsp_format = "fallback", }, }) + +require("conform").formatters["clang-format"] = { + prepend_args = { + "--style", + "{IndentWidth: 4, AlignAfterOpenBracket: BlockIndent, AlignConsecutiveAssignments: Consecutive, AlignArrayOfStructures: Right, BreakBeforeBraces: Linux}", + }, +} |