mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 04:03:30 +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',
|
'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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue