mirror of https://github.com/tiyn/dotfiles
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.
32 lines
888 B
32 lines
888 B
return {
|
|
-- improved refactoring
|
|
{
|
|
"stevearc/conform.nvim",
|
|
config = function()
|
|
require("conform").setup({
|
|
formatters_by_ft = {
|
|
lua = { "stylua" },
|
|
markdown = { "mdformat" },
|
|
python = { "isort", "yapf" },
|
|
sh = { "beautysh" },
|
|
shell = { "beautysh" },
|
|
tex = { "latexindent" },
|
|
yaml = { "yamlfmt" },
|
|
},
|
|
})
|
|
require("conform").formatters.latexindent = {
|
|
args = require("conform.util").extend_args(
|
|
require("conform.formatters.latexindent").args,
|
|
{ "-y=defaultIndent: ' '" }
|
|
),
|
|
}
|
|
require("conform").formatters.beautysh = {
|
|
args = require("conform.util").extend_args(
|
|
require("conform.formatters.beautysh").args,
|
|
{ "--indent-size=2", "--force-function-style=fnpar" }
|
|
),
|
|
}
|
|
end,
|
|
},
|
|
}
|