mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-16 15:07:44 +02:00
nvim: added latexindent with 2 space indent
This commit is contained in:
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…
x
Reference in New Issue
Block a user