vim.lsp.config("texlab", {
  settings = {
    texlab = {
      build = {
        executable = "latexmk",
        args = { "-lualatex", "-interaction=nonstopmode", "-synctex=1", "%f" },
        onSave = false,
        forwardSearchAfter = false,
      },
      chktex = {
        onOpenAndSave = false,
        onEdit = false,
      },
      diagnosticsDelay = 300,
      formatterLineLength = 80,
      bibtexFormatter = "texlab",
      latexFormatter = "latexindent",
      latexindent = {
        ["local"] = "localSettings.yaml",
        modifyLineBreaks = false,
      },
    },
  },
})
