summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-02-24 14:18:08 +0100
committerAotrix <[email protected]>2025-02-24 14:18:08 +0100
commitacf3e9cf09761514301dd6ba6f97978cf4ca5587 (patch)
treec0cf013ff10ec2adcb88db3bebeb16e96f64312a /lua
parent21b9d65db7177b6ff55c9d37f6e6c0cfae51ec60 (diff)
added autoformater
Diffstat (limited to 'lua')
-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" },
+ },
+ }
+}