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

nvim: added stylua with custom config

This commit is contained in:
2024-03-05 19:46:26 +01:00
parent abed395a87
commit 7931d193b6
3 changed files with 23 additions and 9 deletions

View File

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