mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: added latexindent with 2 space indent
This commit is contained in:
@@ -2,11 +2,17 @@ return {
|
||||
-- improved refactoring
|
||||
{
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
python = { "isort", "black" },
|
||||
markdown = { "mdformat" },
|
||||
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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user