summaryrefslogtreecommitdiff
path: root/lua/user/lsp/settings/texlab.lua
blob: 58e8743edfbaba6caaefc04546ac8671be6295d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
return {

	settings = {

  texlab = {
    filetype="latex",
    auxDirectory = ".",
    bibtexFormatter = "texlab",
    build = {
      args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
      executable = "latexmk",
      forwardSearchAfter = true,
      onSave = true
    },
    chktex = {
      onEdit = false,
      onOpenAndSave = false
    },
    diagnosticsDelay = 300,
    formatterLineLength = 80,
    forwardSearch = {
        executable = 'zathura',
        args = {
          '--synctex-editor-command',
          [[nvim-texlabconfig -file '%{input}' -line %{line}]],
          '--synctex-forward',
          '%l:1:%f',
          '%p',
        },
      },
    latexFormatter = "latexindent",
    latexindent = {
      modifyLineBreaks = false
    },
   single_file_support = true,
  }
}
}