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 }, }, }, })