From e7296d71a41c34388d8ed732c098db1324e3c220 Mon Sep 17 00:00:00 2001 From: niverton Date: Sun, 25 May 2025 23:29:32 +0200 Subject: [PATCH] feat(rust): enable dioxus formatter for rust files --- lua/plugins/21-format.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/plugins/21-format.lua diff --git a/lua/plugins/21-format.lua b/lua/plugins/21-format.lua new file mode 100644 index 0000000..a478dcf --- /dev/null +++ b/lua/plugins/21-format.lua @@ -0,0 +1,12 @@ +---@type LazySpec +return { + "stevearc/conform.nvim", + optional = true, + ---@module "conform" + ---@type conform.setupOpts + opts = { + formatters_by_ft = { + rust = { "dioxus", lsp_format = "first" }, + }, + }, +}