misc cleanups

This commit is contained in:
Barrett Ruth 2026-03-04 18:03:19 -05:00
parent 902f0f3ad6
commit e30ca4eb16
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 18 additions and 3 deletions

View file

@ -147,7 +147,7 @@ return {
{
'barrettruth/pending.nvim',
before = function()
vim.g.pending = { debug = true }
vim.g.pending = { debug = false }
end,
keys = { { '<leader>P', '<cmd>Pending<cr>' } },
},
@ -297,7 +297,22 @@ return {
require('preview').setup({
github = true,
typst = { open = { 'sioyek', '--new-instance' } },
latex = { open = { 'sioyek', '--new-instance' } },
latex = {
open = { 'sioyek', '--new-instance' },
output = function(ctx)
return 'build/' .. vim.fn.fnamemodify(ctx.file, ':t:r') .. '.pdf'
end,
args = function(ctx)
return {
'-pdf',
'-interaction=nonstopmode',
'-synctex=1',
'-outdir=build',
'-pdflatex=pdflatex -file-line-error -interaction=nonstopmode %O %S',
ctx.file,
}
end,
},
})
end,
keys = { { '<leader>p', '<cmd>Preview watch<cr>' } },