diff options
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" } + }, + } +} |
