conform.lua 417 B

12345678910111213141516
  1. return {
  2. "stevearc/conform.nvim",
  3. opts = {},
  4. config = function()
  5. require("conform").setup({
  6. formatters_by_ft = {
  7. lua = { "stylua" },
  8. -- Conform will run multiple formatters sequentially
  9. -- Use a sub-list to run only the first available formatter
  10. javascript = { { "prettierd", "prettier" } },
  11. rust = { "rustfmt", lsp_format = "fallback" },
  12. typst = { "typstyle" }
  13. },
  14. })
  15. end,
  16. }