You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
584 B

return {
-- improved refactoring
{
"stevearc/conform.nvim",
config = function()
require("conform").setup({
formatters_by_ft = {
python = { "isort", "yapf" },
markdown = { "mdformat" },
tex = { "latexindent" },
lua = { "stylua" },
yaml = { "yamlfmt" },
},
})
require("conform").formatters.latexindent = {
args = require("conform.util").extend_args(
require("conform.formatters.latexindent").args,
{ "-y=defaultIndent: ' '" }
),
}
end,
},
}