mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 00:07:47 +02:00
nvim: added latexindent with 2 space indent
This commit is contained in:
parent
f789c139cb
commit
abed395a87
@ -1,4 +1,5 @@
|
|||||||
Bonitur
|
Bonitur
|
||||||
Königinnensubstanz
|
Königinnensubstanz
|
||||||
Magazinbeute
|
Magazinbeute
|
||||||
|
Magazinbeuten
|
||||||
Pollenhose
|
Pollenhose
|
||||||
|
@ -2,11 +2,17 @@ return {
|
|||||||
-- improved refactoring
|
-- improved refactoring
|
||||||
{
|
{
|
||||||
'stevearc/conform.nvim',
|
'stevearc/conform.nvim',
|
||||||
opts = {
|
config = function()
|
||||||
|
require("conform").setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
markdown = { "mdformat" },
|
markdown = { "mdformat" },
|
||||||
}
|
tex = { "latexindent" },
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
require("conform").formatters.latexindent = {
|
||||||
|
prepend_args = { "-y=defaultIndent: ' '" },
|
||||||
|
}
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@ return {
|
|||||||
require("null-ls").builtins.formatting.black,
|
require("null-ls").builtins.formatting.black,
|
||||||
-- markdown
|
-- markdown
|
||||||
require("null-ls").builtins.formatting.mdformat,
|
require("null-ls").builtins.formatting.mdformat,
|
||||||
|
-- latex
|
||||||
|
require("null-ls").builtins.formatting.latexindent,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@ -22,7 +24,10 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"isort", "black", "mdformat"
|
"black",
|
||||||
|
"isort",
|
||||||
|
"latexindent",
|
||||||
|
"mdformat",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user