mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 14:03:51 +00:00
preview.nvim
This commit is contained in:
parent
440e1993c5
commit
27eea56ff8
1 changed files with 13 additions and 4 deletions
|
|
@ -164,14 +164,23 @@ return {
|
|||
},
|
||||
{
|
||||
'barrettruth/pending.nvim',
|
||||
keys = {
|
||||
{ '<leader>p', '<cmd>Pending<cr><cmd>only<cr>', desc = 'Pending tasks' },
|
||||
},
|
||||
init = function()
|
||||
map('n', '<leader>p', '<cmd>Pending<cr><cmd>only<cr>')
|
||||
end,
|
||||
},
|
||||
{
|
||||
'barrettruth/preview.nvim',
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue