From 602e76b8781e4e01b209ad9274962302e58a5054 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Fri, 17 Jan 2025 10:08:28 +0100
Subject: nvim: add plugin, conform

---
 .config/nvim/lua/plugins/conform.lua | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .config/nvim/lua/plugins/conform.lua

(limited to '.config/nvim/lua/plugins')

diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua
new file mode 100644
index 0000000..9f15bbb
--- /dev/null
+++ b/.config/nvim/lua/plugins/conform.lua
@@ -0,0 +1,18 @@
+return {
+    {
+        'stevearc/conform.nvim',
+        opts = {
+            formatters_by_ft = {
+                lua = { "stylua" },
+                -- Conform will run multiple formatters sequentially
+                python = { "isort", "black" },
+                -- You can customize some of the format options for the filetype (:help conform.format)
+                rust = { "rustfmt", lsp_format = "fallback" },
+                -- Conform will run the first available formatter
+                javascript = { "prettierd", "prettier", stop_after_first = true },
+                -- latex
+                tex = { "tex-fmt" },
+            },
+        }
+    },
+}
-- 
cgit v1.2.3-70-g09d2