local M = {} M.setup = function(lsp, capabilities) lsp.texlab.setup({ capabilities = capabilities, texlab = { auxDirectory = ".", bibtexFormatter = "texlab", build = { args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" }, executable = "xelatex", forwardSearchAfter = false, onSave = false, }, chktex = { onEdit = false, onOpenAndSave = false, }, diagnosticsDelay = 0, formatterLineLength = 120, forwardSearch = { args = {}, }, latexFormatter = "latexindent", latexindent = { modifyLineBreaks = false, }, }, }) end return M