We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 086a40d commit 7f4c911Copy full SHA for 7f4c911
1 file changed
lua/conform/formatters/tex-fmt.lua
@@ -5,5 +5,17 @@ return {
5
description = "An extremely fast LaTeX formatter written in Rust.",
6
},
7
command = "tex-fmt",
8
- args = { "-s" },
+ args = function(self, ctx)
9
+ local args = {
10
+ "--stdin",
11
+ "--tabsize",
12
+ ctx.shiftwidth,
13
+ }
14
+
15
+ if not vim.bo[ctx.buf].expandtab then
16
+ table.insert(args, "--usetabs")
17
+ end
18
19
+ return args
20
+ end,
21
}
0 commit comments