diff options
| author | Marek Muzyka <marek@muzyka.dev> | 2025-11-14 19:26:59 +0100 |
|---|---|---|
| committer | Marek Muzyka <marek@muzyka.dev> | 2025-11-14 19:26:59 +0100 |
| commit | 9e69e3554ee1dd56f055423de09a0a575fbe73b0 (patch) | |
| tree | 095c62ec326a338a57b18921caaebe663eab86e1 /lua/plugins/conform.lua | |
Basic config
Diffstat (limited to 'lua/plugins/conform.lua')
| -rw-r--r-- | lua/plugins/conform.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua new file mode 100644 index 0000000..a7db2fb --- /dev/null +++ b/lua/plugins/conform.lua @@ -0,0 +1,20 @@ +return { + "stevearc/conform.nvim", + keys = { + { + "<leader>cf", + function() + require("conform").format({ async = true }) + end, + mode = "", + desc = "Format buffer", + }, + }, + opts = { + formatters_by_ft = { + cpp = { "clang-format" }, + ocaml = { "ocamlformat" }, + python = { "black" } + }, + } +} |
