local find_doc_root = require('lspconfig.util').root_pattern('Tectonic.toml') if find_doc_root(vim.fn.expand('%:p:h')) then vim.opt_local.makeprg = 'latextbx mk -1' else vim.opt_local.makeprg = 'latextbx mk -1 %' end vim.opt_local.textwidth = 80