summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/plugins/conform.lua
diff options
context:
space:
mode:
authorTom Li Dobnik <tomlidobnik1@gmail.com>2026-03-03 18:46:16 +0100
committerTom Li Dobnik <tomlidobnik1@gmail.com>2026-03-03 18:46:16 +0100
commitf7bbc5e6740f6199d7ed0fe704daaa7efd98c093 (patch)
treed6cd8984dbf2a8a909f16dde865a19a343c31d48 /.config/nvim/lua/config/plugins/conform.lua
parent1f156148fadab8468a46e598296b18b54f7860ce (diff)
nvim update
Diffstat (limited to '.config/nvim/lua/config/plugins/conform.lua')
-rw-r--r--.config/nvim/lua/config/plugins/conform.lua40
1 files changed, 0 insertions, 40 deletions
diff --git a/.config/nvim/lua/config/plugins/conform.lua b/.config/nvim/lua/config/plugins/conform.lua
deleted file mode 100644
index 5747200..0000000
--- a/.config/nvim/lua/config/plugins/conform.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-return {
- "stevearc/conform.nvim",
- event = "VeryLazy",
- keys = {
- {
- "<leader>f",
- function()
- require("conform").format({ async = true, lsp_format = "fallback" })
- end,
- mode = "",
- desc = "Format buffer",
- },
- },
-
- opts = {
- formatters_by_ft = {
- lua = { "stylua" },
- python = { "isort", "black" },
- rust = { "rustfmt" },
- javascript = { "prettierd", "prettier", stop_after_first = true },
- typescript = { "prettierd", "prettier", stop_after_first = true },
- typescriptreact = { "prettierd", "prettier", stop_after_first = true },
- css = { "prettierd", "prettier", stop_after_first = true },
- html = { "prettierd", "prettier", stop_after_first = true },
- typst = { "prettypst" },
- xml = { "xmlformatter" },
- },
- format_on_save = {
- timeout_ms = 500,
- lsp_format = "fallback",
- },
- formatters = {
- xmlformat = {
- command = "xmlformat",
- args = { "--selfclose", "-" },
- stdin = true,
- },
- },
- },
-}