nvim: added latexindent with 2 space indent

master
tiyn 10 months ago
parent f789c139cb
commit abed395a87

@ -1,4 +1,5 @@
Bonitur
Königinnensubstanz
Magazinbeute
Magazinbeuten
Pollenhose

@ -2,11 +2,17 @@ return {
-- improved refactoring
{
'stevearc/conform.nvim',
opts = {
config = function()
require("conform").setup({
formatters_by_ft = {
python = { "isort", "black" },
markdown = { "mdformat" },
tex = { "latexindent" },
}
})
require("conform").formatters.latexindent = {
prepend_args = { "-y=defaultIndent: ' '" },
}
end
}
}

@ -13,6 +13,8 @@ return {
require("null-ls").builtins.formatting.black,
-- markdown
require("null-ls").builtins.formatting.mdformat,
-- latex
require("null-ls").builtins.formatting.latexindent,
}
})
end
@ -22,7 +24,10 @@ return {
opts = {
automatic_installation = true,
ensure_installed = {
"isort", "black", "mdformat"
"black",
"isort",
"latexindent",
"mdformat",
}
}
}

Loading…
Cancel
Save