summaryrefslogtreecommitdiff
path: root/lua/user/texlab.lua
blob: c38a5bbcc1dd25cb9ea26357ce55725e97a1030a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local lspconfig = require("lspconfig")
local forwardSearch_args = {'--synctex-forward', '%l:1:%f', '%p'}

lspconfig.texlab.setup({
    settings = {
        texlab = {
          auxDirectory = ".",
          bibtexFormatter = "texlab",
          build = {
            args = { "-pv", "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
            executable = "latexmk",
            onSave = true
          },
          forwardSearch = {
            executable = "zathura",
            args = forwardSearch_args
          },
        },
    },
})