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

nvim: change pythons style to be more campact

This commit is contained in:
2024-03-06 17:14:39 +01:00
parent 7931d193b6
commit 4bfc54bcc1
3 changed files with 19 additions and 6 deletions

View File

@@ -5,14 +5,17 @@ return {
config = function()
require("conform").setup({
formatters_by_ft = {
python = { "isort", "black" },
python = { "isort", "yapf" },
markdown = { "mdformat" },
tex = { "latexindent" },
lua = { "stylua" },
},
})
require("conform").formatters.latexindent = {
prepend_args = { "-y=defaultIndent: ' '" },
args = require("conform.util").extend_args(
require("conform.formatters.latexindent").args,
{ "-y=defaultIndent: ' '" }
),
}
end,
},