summary refs log tree commit diff
path: root/.vim/after/ftplugin/tex.lua
blob: bf62d266c64f8671e96db935c27920ae6e05022b (plain) (blame)
1
2
3
4
5
6
7
8
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