nix-infra/modules/nvim/plugins/conform.lua
2024-03-24 19:02:25 +01:00

12 lines
278 B
Lua

require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
python = { "isort", "black" },
javascript = { "prettier" },
rust = { "rustfmt" },
nix = { "alejandra" },
["*"] = { "codespell" },
},
log_level = vim.log.levels.ERROR,
notify_on_error = true,
})