summaryrefslogtreecommitdiff
path: root/lua/aotrix
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix')
-rw-r--r--lua/aotrix/plugins/autoformat.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/aotrix/plugins/autoformat.lua b/lua/aotrix/plugins/autoformat.lua
new file mode 100644
index 0000000..4dec682
--- /dev/null
+++ b/lua/aotrix/plugins/autoformat.lua
@@ -0,0 +1,16 @@
+return {
+ "stevearc/conform.nvim",
+ opts = {
+ notify_on_error = false,
+ format_on_save = {
+ timeout_ms = 500,
+ lsp_fallback = true,
+ },
+ formatters_by_ft = {
+ lua = { "lua-format" },
+ python = { "black", "pyink" },
+ cpp = { "clang-format" },
+ cmake = { "cmake_format" },
+ },
+ }
+}