| 12345678910111213141516 |
- return {
- "stevearc/conform.nvim",
- opts = {},
- config = function()
- require("conform").setup({
- formatters_by_ft = {
- lua = { "stylua" },
- -- Conform will run multiple formatters sequentially
- -- Use a sub-list to run only the first available formatter
- javascript = { { "prettierd", "prettier" } },
- rust = { "rustfmt", lsp_format = "fallback" },
- typst = { "typstyle", lsp_format = "last" }
- },
- })
- end,
- }
|