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:
@@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user