1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-13 04:51:15 +02:00

nvim: added latexindent with 2 space indent

This commit is contained in:
2024-03-05 14:44:15 +01:00
parent f789c139cb
commit abed395a87
4 changed files with 45 additions and 33 deletions

View File

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