preview.nvim

This commit is contained in:
Harivansh Rathi 2026-03-11 15:43:57 -04:00
parent 440e1993c5
commit 27eea56ff8

View file

@ -164,14 +164,23 @@ return {
}, },
{ {
'barrettruth/pending.nvim', 'barrettruth/pending.nvim',
keys = { init = function()
{ '<leader>p', '<cmd>Pending<cr><cmd>only<cr>', desc = 'Pending tasks' }, map('n', '<leader>p', '<cmd>Pending<cr><cmd>only<cr>')
}, end,
}, },
{ {
'barrettruth/preview.nvim', 'barrettruth/preview.nvim',
init = function() init = function()
vim.g.preview = { typst = true, latex = true } vim.g.preview = {
typst = true,
latex = true,
github = {
output = function(ctx)
return '/tmp/' .. vim.fn.fnamemodify(ctx.file, ':t:r') .. '.html'
end,
},
mermaid = true,
}
end, end,
}, },
} }