diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index d744012..09fcc23 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -164,14 +164,23 @@ return { }, { 'barrettruth/pending.nvim', - keys = { - { 'p', 'Pendingonly', desc = 'Pending tasks' }, - }, + init = function() + map('n', 'p', 'Pendingonly') + 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, }, }